Skip to content

Commit 343d86c

Browse files
authored
Add test file to Commands package (#6)
* Add test file to package * fix NaN * fix TS2691
1 parent aa48dac commit 343d86c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/commands/commands-tests.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Commands } from "./index.js";
2+
3+
let timerA = Date.now();
4+
Commands.run("say Hello World");
5+
console.warn(`Commands.run time: ${Date.now() - timerA} ms`);
6+
7+
let timerB = Date.now();
8+
Commands.runAsync("say Hello World in async");
9+
console.warn(`Commands.runAsync time: ${Date.now() - timerB} ms`);
10+
11+
console.log("End of test");

0 commit comments

Comments
 (0)