mirror of
https://github.com/rjNemo/deno_hello
synced 2026-06-12 12:56:38 +00:00
init setup
This commit is contained in:
parent
64711da9c5
commit
9e64bdf651
2 changed files with 7 additions and 5 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
import { assertStrictEquals } from "https://deno.land/std@0.87.0/testing/asserts.ts";
|
import { assertStrictEquals } from "https://deno.land/std@0.87.0/testing/asserts.ts";
|
||||||
import main from "./index.ts";
|
import { sayHello } from "./index.ts";
|
||||||
|
|
||||||
Deno.test("Hello test", () => {
|
Deno.test("Hello test", () => {
|
||||||
const actual = main();
|
const actual = sayHello();
|
||||||
const expected = "hello";
|
const expected = "hello";
|
||||||
assertStrictEquals(actual, expected);
|
assertStrictEquals(actual, expected);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
const main = () => "hello";
|
/**
|
||||||
|
* Display the iconic Hello, World
|
||||||
|
*/
|
||||||
|
export const sayHello = () => "Hello, World!";
|
||||||
|
|
||||||
console.log(main());
|
console.log(sayHello());
|
||||||
export default main;
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue