1
0
Fork 0
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:
MohammadSu1 2024-11-08 19:11:20 +02:00
parent 29546d8d99
commit 95d7b43e65
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{
"args": "run --allow-read main.mts",
"output": "3"
}

View file

@ -0,0 +1,4 @@
export function add(num1, num2) {
const result = num1 + num2;
console.log(result);
}

View file

@ -0,0 +1,3 @@
import * as a from "./a.cts";
console.log(a.add(1,2));