You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I went with the unit test track, it was pretty straight forward. I really like the teaspoon interface that is built in.
Were you successful?
I think so? The test passes all 4 assertions.
Links to commits on Github or copy and pasted code snippits of a test
//=require remove_space
describe('removeSpace', function(){
it('removes a space from a string', function(){
var str = 'I have spaces';
var result = 'Ihavespaces';
assert.equal(removeSpace(str), result);
})
it('removes multiple spaces from a string', function(){
var str = 'Multiple spaces';
var result = 'Multiplespaces';
assert.equal(removeSpace(str), result)
})
it('removes a space from numbers', function(){
var str = '1 2';
var result = '12';
assert.equal(removeSpace(str), result)
})
})