-
Your experience implementing
Teaspoon was reasonably easy to implement, and seems to maintain similarities to testing frameworks that I'm already familiar with.
-
Were you successful?
I was successful in creating unit tests, but I was not able to figure out how to test for a particular error being thrown.
-
Links to commits on Github or copy and pasted code snippits of a test
//= require remove_space
describe('removeSpace', function () {
it ('removes spaces from a string', function () {
var str = 'I have spaces';
var result = 'Ihavespaces';
expect(removeSpace(str)).to.eq(result);
})
it ('removes multiple consecutive spaces from a string', function () {
var str = 'I have spaces';
var result = 'Ihavespaces';
expect(removeSpace(str)).to.eq(result);
})
it ('removes spaces from a number string', function () {
var str = '1234 6789';
var result = '12346789';
expect(removeSpace(str)).to.eq(result);
})
})