mirror of
https://github.com/rjNemo/deno_hello
synced 2026-06-06 01:56:40 +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 main from "./index.ts";
|
||||
import { sayHello } from "./index.ts";
|
||||
|
||||
Deno.test("Hello test", () => {
|
||||
const actual = main();
|
||||
const actual = sayHello();
|
||||
const expected = "hello";
|
||||
assertStrictEquals(actual, expected);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
const main = () => "hello";
|
||||
/**
|
||||
* Display the iconic Hello, World
|
||||
*/
|
||||
export const sayHello = () => "Hello, World!";
|
||||
|
||||
console.log(main());
|
||||
export default main;
|
||||
console.log(sayHello());
|
||||
|
|
|
|||
Loading…
Reference in a new issue