mirror of
https://github.com/denoland/deno.git
synced 2025-01-07 06:46:59 -05:00
Adding a test for the .mts and .cts
This commit is contained in:
parent
29546d8d99
commit
95d7b43e65
3 changed files with 11 additions and 0 deletions
4
tests/specs/fmt_errors/__test__.jsonc
Normal file
4
tests/specs/fmt_errors/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"args": "run --allow-read main.mts",
|
||||
"output": "3"
|
||||
}
|
4
tests/specs/fmt_errors/a.cts
Normal file
4
tests/specs/fmt_errors/a.cts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export function add(num1, num2) {
|
||||
const result = num1 + num2;
|
||||
console.log(result);
|
||||
}
|
3
tests/specs/fmt_errors/main.mts
Normal file
3
tests/specs/fmt_errors/main.mts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import * as a from "./a.cts";
|
||||
|
||||
console.log(a.add(1,2));
|
Loading…
Reference in a new issue