bump test timeout
This commit is contained in:
parent
84d6539fd6
commit
aa8bc096d5
2
Makefile
2
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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue