mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 07:08:27 -05:00
Modify the test of .mts and .cts
This commit is contained in:
parent
ca469ae97b
commit
09c3cae9bf
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"args": "run --allow-read main.mts",
|
"args": "run --unstable --allow-read main.mts",
|
||||||
"output": "3"
|
"output": "3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
export function add(num1, num2) {
|
function add(num1, num2) {
|
||||||
const result = num1 + num2;
|
const result = num1 + num2;
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = { add };
|
||||||
|
|
Loading…
Reference in a new issue