diff --git a/01_helloWorld/helloWorld.js b/01_helloWorld/helloWorld.js index df27036..1a32052 100644 --- a/01_helloWorld/helloWorld.js +++ b/01_helloWorld/helloWorld.js @@ -1,5 +1,5 @@ const helloWorld = function() { - return '' + return 'Hello, World!'; }; module.exports = helloWorld; diff --git a/01_helloWorld/helloWorld.spec.js b/01_helloWorld/helloWorld.spec.js index e6030fd..1b117e8 100644 --- a/01_helloWorld/helloWorld.spec.js +++ b/01_helloWorld/helloWorld.spec.js @@ -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!'); +}); +}) \ No newline at end of file