Browse Source

Remove unreachable code

John Lees-Miller 7 năm trước cách đây
mục cha
commit
79804a8e2f
1 tập tin đã thay đổi với 0 bổ sung và 1 xóa
  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', () => {
     try {
       throw new CustomError1({})
-      expect.fail('should have thrown')
     } catch (e) {
       expect(OError.getFullInfo(e)).to.deep.equal({})
       let infoKey = Object.keys(e).find(k => k === 'info')