summaryrefslogtreecommitdiff
path: root/tests/specs/bench/test_and_bench/main.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-24 23:16:45 +0000
committerGitHub <noreply@github.com>2024-03-24 16:16:45 -0700
commitd043dd86f73f93691c9d9032b38ac94ac16a8793 (patch)
tree575102a4f7652fdb6538ffcead590bedf67237b8 /tests/specs/bench/test_and_bench/main.js
parentd263c632e3d5a91fd6f9fffc598128d87c5621cd (diff)
fix: don't panic in test and bench if ops not available (#23055)
Fixes regression introduced in https://github.com/denoland/deno/pull/22112 that removed checks if `Deno.test` or `Deno.bench` are not used in respective subcommands. Closes https://github.com/denoland/deno/issues/23041
Diffstat (limited to 'tests/specs/bench/test_and_bench/main.js')
-rw-r--r--tests/specs/bench/test_and_bench/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/specs/bench/test_and_bench/main.js b/tests/specs/bench/test_and_bench/main.js
new file mode 100644
index 000000000..5e4a395e9
--- /dev/null
+++ b/tests/specs/bench/test_and_bench/main.js
@@ -0,0 +1,3 @@
+Deno.test("test", () => {});
+
+Deno.bench("bench", () => {});