summaryrefslogtreecommitdiff
path: root/cli/js/tests/testing_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/tests/testing_test.ts')
-rw-r--r--cli/js/tests/testing_test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/js/tests/testing_test.ts b/cli/js/tests/testing_test.ts
index b47eb03e2..9ed89f532 100644
--- a/cli/js/tests/testing_test.ts
+++ b/cli/js/tests/testing_test.ts
@@ -11,8 +11,8 @@ unitTest(function nameOfTestCaseCantBeEmpty(): void {
() => {
Deno.test("", () => {});
},
- Error,
- "The name of test case can't be empty"
+ TypeError,
+ "The test name can't be empty"
);
assertThrows(
() => {
@@ -21,8 +21,8 @@ unitTest(function nameOfTestCaseCantBeEmpty(): void {
fn: () => {}
});
},
- Error,
- "The name of test case can't be empty"
+ TypeError,
+ "The test name can't be empty"
);
});
@@ -31,7 +31,7 @@ unitTest(function testFnCantBeAnonymous(): void {
() => {
Deno.test(function() {});
},
- Error,
- "Test function can't be anonymous"
+ TypeError,
+ "The test function can't be anonymous"
);
});