From 94d6c393df2c3f987783ef2ece1193d064a19467 Mon Sep 17 00:00:00 2001 From: endritibra Date: Mon, 30 May 2022 00:20:32 +0200 Subject: [PATCH] Test --- 01_helloWorld/helloWorld.js | 2 +- 01_helloWorld/helloWorld.spec.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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