Last active
February 27, 2020 16:51
-
-
Save mlevkovsky/9879f50621b53ba6270d57f45fd3790c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Calculator { | |
public add(firstAddend: number, secondAddend: number): number { | |
return 0; | |
} | |
} | |
// ❌test fails since calculator doesn't sum the two numbers | |
describe('Calculator', () => { | |
it('sums up two numbers properly', () => { | |
calculator = new Calculator(); | |
expect(calculator.add(2,2)).to.equal(4); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment