mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Update README with Jest specific language. Update some spec files with new syntax
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const helloWorld = function() {
|
||||
return ''
|
||||
return 'Yello Wold!'
|
||||
}
|
||||
|
||||
module.exports = helloWorld;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const expect = require('expect');const { expect } = require('@jest/globals');
|
||||
const expect = require('expect');
|
||||
const helloWorld = require('./helloWorld');
|
||||
|
||||
// describe('Hello World', function() {
|
||||
@@ -7,6 +7,8 @@ const helloWorld = require('./helloWorld');
|
||||
// });
|
||||
// });
|
||||
|
||||
test('says "Hello, World!"', () => {
|
||||
expect(helloWorld()).toBe("Hello, World!");
|
||||
describe('helloWorld', function() {
|
||||
test('says "Hello, World!"', function() {
|
||||
expect(helloWorld()).toBe("Hello, World!");
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user