mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
update tests, multiple exercises
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const helloWorld = function() {
|
||||
return 'Yello Wold!'
|
||||
return ''
|
||||
}
|
||||
|
||||
module.exports = helloWorld;
|
||||
|
||||
@@ -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!");
|
||||
});
|
||||
Reference in New Issue
Block a user