Skip to content

Commit daf4715

Browse files
committed
added error test
1 parent b6de4f2 commit daf4715

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/Errors.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
const Errors = require('../src/Errors');
4+
5+
describe('Errors', () => {
6+
it('should create a custom error', () => {
7+
const message = "Example Error";
8+
const error = Errors.customError(message);
9+
expect(error.message).toBe(message);
10+
expect(error instanceof Error).toBeTrue();
11+
});
12+
});

0 commit comments

Comments
 (0)