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 3565dc4 commit 43e8165Copy full SHA for 43e8165
test.js
@@ -27,12 +27,12 @@ test('should contain debug information', t => {
27
t.is(pres.context.debug.length, 2);
28
});
29
30
-test('type defined, error does not exist', t => {
+test('should return false, if error does not exist', t => {
31
const out = m.throw('InexistentError', 'This error does not exist', 130);
32
t.is(m.thrown(out, 'InexistentError'), false);
33
34
35
-test('type defined, error exists', t => {
+test('should return true, if the error exists', t => {
36
const out = m.throw('WrongAcceptError', 'I cannot accept this', 118);
37
t.is(m.thrown(out, 'WrongAcceptError'), true);
38
0 commit comments