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

18 lines
459 B
JavaScript
Raw Normal View History

2016-08-13 23:20:14 +00:00
var HelloWorld = require('./hello-world');
describe('Hello World', function() {
var helloWorld = new HelloWorld();
it('says hello world with no name', function() {
expect(helloWorld.hello('')).toEqual('Hello, World!');
});
xit('says hello to bob', function() {
expect(helloWorld.hello('Bob')).toEqual('Hello, Bob!');
});
xit('says hello to sally', function() {
expect(helloWorld.hello('Sally')).toEqual('Hello, Sally!');
});
});