You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
459 B
459 B
Test Drive Development
npm install jasmine -g
multBy2.js:
module.exports = (value) => {
return value * 2;
}
test.js:
const multBy2 = require('./multBy2.js');
describe("multBy2", function(){
it("should multiply a value by 2", function(){
expect(multBy2(2)).toBe(4)
})
it("should return 0 when passed 0", function(){
expect(multBy2(0)).toBe(1)
})
})
jasmine test.js