summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/cjs_with_deps/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/cjs_with_deps/main.js')
-rw-r--r--cli/tests/testdata/npm/cjs_with_deps/main.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/cjs_with_deps/main.js b/cli/tests/testdata/npm/cjs_with_deps/main.js
new file mode 100644
index 000000000..420136c92
--- /dev/null
+++ b/cli/tests/testdata/npm/cjs_with_deps/main.js
@@ -0,0 +1,12 @@
+import chalk from "npm:chalk@4";
+import { expect } from "npm:chai@4.2";
+
+console.log(chalk.green("chalk cjs loads"));
+
+const timeout = setTimeout(() => {}, 0);
+expect(timeout).to.be.a("number");
+clearTimeout(timeout);
+
+const interval = setInterval(() => {}, 100);
+expect(interval).to.be.a("number");
+clearInterval(interval);