Skip to content

Commit

Permalink
test: Remove redundant error code checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Rossetti committed Apr 30, 2020
1 parent bf9b9cb commit 80f22f5
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion test/func/add.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('Functional: add()', function () {
const seven = add(archive, target, { $bin: bin })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down
1 change: 0 additions & 1 deletion test/func/delete.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ describe('Functional: delete()', function () {
const seven = del(archive, target, { $bin: bin })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down
1 change: 0 additions & 1 deletion test/func/extract.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('Functional: extract()', function () {
const seven = extract(archive, target, { $bin: bin })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down
1 change: 0 additions & 1 deletion test/func/extractFull.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ describe('Functional: extractFull()', function () {
const seven = extractFull(archive, output, { $bin: bin })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down
1 change: 0 additions & 1 deletion test/func/rename.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ describe('Functional: rename()', function () {
const seven = rename(archive, target, { $bin: bin })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down
1 change: 0 additions & 1 deletion test/func/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('Functional: test()', function () {
const seven = test(archive, { $bin: bin, $cherryPick: target })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down
1 change: 0 additions & 1 deletion test/func/update.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ describe('Functional: update()', function () {
const seven = update(archive, source, { $bin: bin })
seven.on('error', function (err) {
expect(err).to.be.an.instanceof(Error)
expect(err.errno).to.equal('ENOENT')
expect(err.code).to.equal('ENOENT')
expect(err.syscall).to.equal(`spawn ${bin}`)
expect(err.path).to.equal(bin)
Expand Down

0 comments on commit 80f22f5

Please sign in to comment.