-
-
Save paritosh64ce/c84b3d9e29bf808ae8930cfe1f870f3e to your computer and use it in GitHub Desktop.
TDD Angular component with Jasmine using @angular/cli
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
it('should do addition', () => { | |
component.param1 = 5; | |
component.param2 = 7; | |
component.add(); | |
expect(component.result).toBe(12); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment