Test
This commit is contained in:
parent
b038a3f12e
commit
94d6c393df
|
@ -1,5 +1,5 @@
|
|||
const helloWorld = function() {
|
||||
return ''
|
||||
return 'Hello, World!';
|
||||
};
|
||||
|
||||
module.exports = helloWorld;
|
||||
|
|
|
@ -5,3 +5,16 @@ describe('Hello World', function() {
|
|||
expect(helloWorld()).toEqual('Hello, World!');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const helloWorld= require(./helloWorld');
|
||||
|
||||
describe('Hello World',function(){
|
||||
test('says "Hello,World!"' ,function(){
|
||||
expect(helloWorld()).toEqual('Hello,World!');
|
||||
});
|
||||
})
|
Loading…
Reference in New Issue