From f0c250de64d680c4bf6da37e34f1400e45d22768 Mon Sep 17 00:00:00 2001 From: Akutsang Date: Fri, 3 Feb 2023 14:45:18 +0100 Subject: [PATCH] this test is to ensure the process of running the test is working perfecet --- 01_helloWorld/helloWorld.js | 2 +- 01_helloWorld/helloWorld.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/01_helloWorld/helloWorld.js b/01_helloWorld/helloWorld.js index df27036..b542f3b 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..fb96c7e 100644 --- a/01_helloWorld/helloWorld.spec.js +++ b/01_helloWorld/helloWorld.spec.js @@ -1,7 +1,7 @@ -const helloWorld = require('./helloWorld'); +const greeting = require('./helloWorld'); describe('Hello World', function() { test('says "Hello, World!"', function() { - expect(helloWorld()).toEqual('Hello, World!'); + expect(greeting()).toEqual('Hello, World!'); }); });