diff --git a/Makefile b/Makefile index 45daa10..2db8c0e 100755 --- a/Makefile +++ b/Makefile @@ -97,7 +97,7 @@ test-bundle: ## run small (unit) tests test-bundle: build-bundle $(NODE_BIN)/nyc --report-dir="$(TARGET_PATH)/coverage" --exclude-after-remap \ --reporter=html --reporter=lcov --reporter=text-summary \ - $(NODE_BIN)/mocha $(TARGET_PATH)/test.js + $(NODE_BIN)/mocha --timeout 5000 $(TARGET_PATH)/test.js test-rules: ## validate the rules directory test-rules: build-bundle diff --git a/test/error/TestError.ts b/test/error/TestError.ts index 009e22f..1fa6c39 100644 --- a/test/error/TestError.ts +++ b/test/error/TestError.ts @@ -12,18 +12,18 @@ const errors = [ describe('errors', () => { for (const errorType of errors) { describe(kebabCase(errorType.name), () => { - xit('should have a message', () => { + it('should have a message', () => { const err = new errorType(); expect(err.message).to.not.equal(''); }); - xit('should include nested errors in the stack trace', () => { + it('should include nested errors in the stack trace', () => { const inner = new Error('inner error'); const err = new errorType('outer error', inner); expect(err.stack).to.include('inner', 'inner error message').and.include('outer', 'outer error message'); }); - xit('should have the nested error', () => { + it('should have the nested error', () => { const inner = new Error('inner error'); const err = new errorType('outer error', inner); expect(err.cause()).to.equal(inner);