Remove unreachable code

This commit is contained in:
John Lees-Miller 2019-07-08 11:57:28 +01:00
parent 9725b1bf0c
commit 79804a8e2f

View file

@ -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')