summaryrefslogtreecommitdiff
path: root/tests/specs/test/package_json_basic/lib.test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-16 14:39:58 +0100
committerGitHub <noreply@github.com>2024-09-16 15:39:58 +0200
commit968f441da32ae5fc3783a4f9bcda3d34fa276b4d (patch)
tree9dee28c5203fd326ddc0c60020e97bd1a6a12748 /tests/specs/test/package_json_basic/lib.test.ts
parent8fa92228bb748bdc59e0fe003108dcaea0a18d10 (diff)
test: rewrite some ignored tests to spec tests (#25652)
Ref https://github.com/denoland/deno/issues/25241 Rewritten these tests: - check::package_json_basic - check::package_json_fail_check - check::package_json_with_deno_json - info::package_json_basic - test::package_json_basic - run::package_json_auto_discovered_for_npm_binary - run::package_json_with_deno_json
Diffstat (limited to 'tests/specs/test/package_json_basic/lib.test.ts')
-rw-r--r--tests/specs/test/package_json_basic/lib.test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/specs/test/package_json_basic/lib.test.ts b/tests/specs/test/package_json_basic/lib.test.ts
new file mode 100644
index 000000000..4e833e1f3
--- /dev/null
+++ b/tests/specs/test/package_json_basic/lib.test.ts
@@ -0,0 +1,7 @@
+import { add } from "./lib.ts";
+
+Deno.test("should add", () => {
+ if (add(1, 2) !== 3) {
+ throw new Error("Fail");
+ }
+});