Skip to content

Commit cb6fe04

Browse files
committed
Update example
1 parent 8df5fe6 commit cb6fe04

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
console.log('Hello, World!');
1+
export function hello() {
2+
return 'Hello, World!';
3+
}
4+
5+
console.log(hello());

tests/example.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { hello } from '../src';
2+
13
describe('Test suite', () => {
2-
it('should pass', () => {
3-
expect(true).toBe(true)
4+
it('should say hello', () => {
5+
expect(hello()).toEqual('Hello, World!')
46
})
57
})

0 commit comments

Comments
 (0)