19 lines
439 B
JavaScript
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!');
|
||
|
});
|
||
|
});
|
||
|
|