1
0
Fork 0

bump test timeout

This commit is contained in:
ssube 2019-09-30 08:17:49 -05:00
parent 84d6539fd6
commit aa8bc096d5
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 4 additions and 4 deletions

View File

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

View File

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