From 8feb30e3258ed9690eb850e3ca22842b260a0403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 12:33:09 +0200 Subject: BREAKING: remove overload of Deno.test() (#4951) This commit removes overload of Deno.test() that accepted named function. --- cli/js/tests/testing_test.ts | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cli/js/tests') diff --git a/cli/js/tests/testing_test.ts b/cli/js/tests/testing_test.ts index 09378ec30..854e7161c 100644 --- a/cli/js/tests/testing_test.ts +++ b/cli/js/tests/testing_test.ts @@ -25,13 +25,3 @@ unitTest(function nameOfTestCaseCantBeEmpty(): void { "The test name can't be empty" ); }); - -unitTest(function testFnCantBeAnonymous(): void { - assertThrows( - () => { - Deno.test(function () {}); - }, - TypeError, - "The test function can't be anonymous" - ); -}); -- cgit v1.2.3