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

13 lines
329 B
JavaScript
Raw Normal View History

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