summaryrefslogtreecommitdiff
path: root/tests/testdata/npm/cjs_sub_path/main.js
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-09-25 21:46:18 +0300
committerGitHub <noreply@github.com>2024-09-25 18:46:18 +0000
commitc232ecc6af5a09a8f0480e3b2b87ef2cd2b3a348 (patch)
tree49874a35cc2d27d90d0ec26423e8bfe040385683 /tests/testdata/npm/cjs_sub_path/main.js
parent8cdb309ffd6686b2f3c4a2126d927fd5770be34d (diff)
chore: deprecate npm itests (#25804)
Diffstat (limited to 'tests/testdata/npm/cjs_sub_path/main.js')
-rw-r--r--tests/testdata/npm/cjs_sub_path/main.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/testdata/npm/cjs_sub_path/main.js b/tests/testdata/npm/cjs_sub_path/main.js
deleted file mode 100644
index b71360959..000000000
--- a/tests/testdata/npm/cjs_sub_path/main.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// this package will require a subpath like "ajv/dist/compile/codegen"
-// and also get the parent directory index.js file using require("..")
-import Ajv from "npm:ajv@~8.11";
-import addFormats from "npm:ajv-formats@2.1.1";
-import { expect } from "npm:chai@4.3";
-
-const ajv = new Ajv();
-addFormats(ajv);
-
-const schema = {
- type: "string",
- format: "date",
- formatMinimum: "2016-02-06",
- formatExclusiveMaximum: "2016-12-27",
-};
-const validate = ajv.compile(schema);
-
-expect(validate("2016-02-06")).to.be.true;
-expect(validate("2016-02-05")).to.be.false;
-
-console.log("Fini");