From 64a35acd64f4a9aedfb52f6b364c229c6f7e4090 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 15 Mar 2020 09:34:24 +0000 Subject: feat(cli/js/testing): Add TestDefinition::skip (#4351) --- cli/js/tests/testing_test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/js/tests/testing_test.ts') 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" ); }); -- cgit v1.2.3