diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2020-03-15 09:34:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 10:34:24 +0100 |
commit | 64a35acd64f4a9aedfb52f6b364c229c6f7e4090 (patch) | |
tree | a2d3d68b3a072490c3d8e20333b07e165d3ab94b /cli/js/tests/testing_test.ts | |
parent | a159165fe5f9fe53c3593af707888a7efc859d14 (diff) |
feat(cli/js/testing): Add TestDefinition::skip (#4351)
Diffstat (limited to 'cli/js/tests/testing_test.ts')
-rw-r--r-- | cli/js/tests/testing_test.ts | 12 |
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" ); }); |