We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6de4f2 commit daf4715Copy full SHA for daf4715
spec/Errors.spec.js
@@ -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