update tests, multiple exercises

This commit is contained in:
Michael Frank
2021-03-10 00:12:25 +13:00
parent e73c68fc01
commit 2eb02ea212
11 changed files with 161 additions and 172 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
const helloWorld = function() {
return 'Yello Wold!'
return ''
}
module.exports = helloWorld;
+2 -11
View File
@@ -1,14 +1,5 @@
const expect = require('expect');
const helloWorld = require('./helloWorld');
// describe('Hello World', function() {
// it('says hello world', function() {
// expect(helloWorld()).toEqual('Hello, World!');
// });
// });
describe('helloWorld', function() {
test('says "Hello, World!"', function() {
expect(helloWorld()).toBe("Hello, World!");
})
test('says "Hello, World!"', function() {
expect(helloWorld()).toBe("Hello, World!");
});