exercism/ecmascript/hello-world/hello-world.spec.js

19 lines
439 B
JavaScript
Raw Normal View History

2016-08-13 23:20:14 +00:00
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!');
});
});