Skip to content

Commit

Permalink
feat: example function hello
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa committed Jul 18, 2021
1 parent 4a243b6 commit 9a4fa99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import hello from ".";

test("hello world!", () => {
expect(hello("world")).toBe("hello world!");
});
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function hello(name: string): string {
return `hello ${name}!`;
}

0 comments on commit 9a4fa99

Please sign in to comment.