We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df5fe6 commit cb6fe04Copy full SHA for cb6fe04
src/index.ts
@@ -1 +1,5 @@
1
-console.log('Hello, World!');
+export function hello() {
2
+ return 'Hello, World!';
3
+}
4
+
5
+console.log(hello());
tests/example.test.ts
@@ -1,5 +1,7 @@
+import { hello } from '../src';
describe('Test suite', () => {
- it('should pass', () => {
- expect(true).toBe(true)
+ it('should say hello', () => {
+ expect(hello()).toEqual('Hello, World!')
6
})
7
0 commit comments