init setup

This commit is contained in:
Ruidy 2021-02-19 11:52:03 +01:00
parent 64711da9c5
commit 9e64bdf651
2 changed files with 7 additions and 5 deletions

View file

@ -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);
});

View file

@ -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());