exercism/ecmascript/hello-world/hello-world.spec.js
2016-08-13 18:20:14 -05:00

19 lines
439 B
JavaScript

import HelloWorld from './hello-world';
describe('Hello World', () => {
const helloWorld = new HelloWorld();
it('says hello world with no name', () => {
expect(helloWorld.hello('')).toEqual('Hello, World!');
});
xit('says hello to bob', () => {
expect(helloWorld.hello('Bob')).toEqual('Hello, Bob!');
});
xit('says hello to sally', () => {
expect(helloWorld.hello('Sally')).toEqual('Hello, Sally!');
});
});