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

18 lines
459 B
JavaScript

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!');
});
});