Skip to content

Commit b8b2368

Browse files
author
Michael Frank
committed
Added jest
1 parent 42076e7 commit b8b2368

File tree

5 files changed

+10018
-7
lines changed

5 files changed

+10018
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.vscode
1+
.vscode
2+
node_modules

helloWorld/helloWorld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ const helloWorld = function() {
22
return ''
33
}
44

5-
module.exports = helloWorld
5+
module.exports = helloWorld;

helloWorld/helloWorld.spec.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
const { expect } = require('@jest/globals');
12
const helloWorld = require('./helloWorld');
23

3-
describe('Hello World', function() {
4-
it('says hello world', function() {
5-
expect(helloWorld()).toEqual('Hello, World!');
6-
});
7-
});
4+
// describe('Hello World', function() {
5+
// it('says hello world', function() {
6+
// expect(helloWorld()).toEqual('Hello, World!');
7+
// });
8+
// });
9+
10+
test('says "Hello, World!"', () => {
11+
expect(helloWorld()).toBe("Hello, World!");
12+
});

0 commit comments

Comments
 (0)