mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-12 19:26:13 +09:00
Merge branch 'origin/master' into 'jest'
This commit is contained in:
@@ -2,4 +2,4 @@ const helloWorld = function() {
|
||||
return ''
|
||||
}
|
||||
|
||||
module.exports = helloWorld;
|
||||
module.exports = helloWorld
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const helloWorld = require('./helloWorld');
|
||||
|
||||
test('says "Hello, World!"', function() {
|
||||
expect(helloWorld()).toBe("Hello, World!");
|
||||
describe('Hello World', function() {
|
||||
it('says hello world', function() {
|
||||
expect(helloWorld()).toEqual('Hello, World!');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user