odin-javascript-exercises/helloWorld/helloWorld.spec.js

12 lines
328 B
JavaScript
Raw Normal View History

2021-03-02 18:13:24 -08:00
const { expect } = require('@jest/globals');
const helloWorld = require('./helloWorld');
2017-08-17 11:47:39 -07:00
2021-03-02 18:13:24 -08:00
// describe('Hello World', function() {
// it('says hello world', function() {
// expect(helloWorld()).toEqual('Hello, World!');
// });
// });
test('says "Hello, World!"', () => {
expect(helloWorld()).toBe("Hello, World!");
});