Skip to content

Instantly share code, notes, and snippets.

@mlevkovsky
Last active February 27, 2020 16:51
Show Gist options
  • Save mlevkovsky/9879f50621b53ba6270d57f45fd3790c to your computer and use it in GitHub Desktop.
Save mlevkovsky/9879f50621b53ba6270d57f45fd3790c to your computer and use it in GitHub Desktop.
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