Sfoglia il codice sorgente

Remove unreachable code

John Lees-Miller 7 anni fa
parent
commit
79804a8e2f
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      libraries/o-error/test/o-error.test.js

+ 0 - 1
libraries/o-error/test/o-error.test.js

@@ -99,7 +99,6 @@ describe('OError', () => {
   it('handles a custom error without info', () => {
   it('handles a custom error without info', () => {
     try {
     try {
       throw new CustomError1({})
       throw new CustomError1({})
-      expect.fail('should have thrown')
     } catch (e) {
     } catch (e) {
       expect(OError.getFullInfo(e)).to.deep.equal({})
       expect(OError.getFullInfo(e)).to.deep.equal({})
       let infoKey = Object.keys(e).find(k => k === 'info')
       let infoKey = Object.keys(e).find(k => k === 'info')