diff options
Diffstat (limited to 'tests/specs/npm/info_chalk_display/cjs_with_deps/main.js')
-rw-r--r-- | tests/specs/npm/info_chalk_display/cjs_with_deps/main.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/npm/info_chalk_display/cjs_with_deps/main.js b/tests/specs/npm/info_chalk_display/cjs_with_deps/main.js new file mode 100644 index 000000000..568726874 --- /dev/null +++ b/tests/specs/npm/info_chalk_display/cjs_with_deps/main.js @@ -0,0 +1,12 @@ +import chalk from "npm:chalk@4"; +import { expect } from "npm:chai@4.3"; + +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); |