summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/cjs_with_deps/main.js
blob: 420136c9266d42766acbf42927196cdc832e11a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);