Slide 21
Slide 21 text
@juanlizarazog
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3);
});
function sum(a, b) {
// return b + a;
// return a + b;
// return Number.parseInt(a, 10) + Number.parseInt(b, 10);
// or anything else, we just care that the result is the sum
}