This commit is contained in:
endritibra 2022-05-30 00:20:32 +02:00
parent b038a3f12e
commit 94d6c393df
2 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,5 @@
const helloWorld = function() {
return ''
return 'Hello, World!';
};
module.exports = helloWorld;

View File

@ -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!');
});
})