odin-javascript-exercises/helloWorld/helloWorld.spec.js
Michael Frank b8b23686e3 Added jest
2021-03-03 15:13:24 +13:00

12 lines
No EOL
328 B
JavaScript

const { expect } = require('@jest/globals');
const helloWorld = require('./helloWorld');
// describe('Hello World', function() {
// it('says hello world', function() {
// expect(helloWorld()).toEqual('Hello, World!');
// });
// });
test('says "Hello, World!"', () => {
expect(helloWorld()).toBe("Hello, World!");
});