summaryrefslogtreecommitdiff
path: root/cli/js/tests/testing_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 12:33:09 +0200
committerGitHub <noreply@github.com>2020-04-28 12:33:09 +0200
commit8feb30e3258ed9690eb850e3ca22842b260a0403 (patch)
tree6805bfe3df675c2c7f6a379093061c6b73d8365a /cli/js/tests/testing_test.ts
parentb508e845671de9351c3f51755647371d76128d29 (diff)
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
Diffstat (limited to 'cli/js/tests/testing_test.ts')
-rw-r--r--cli/js/tests/testing_test.ts10
1 files changed, 0 insertions, 10 deletions
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"
- );
-});