Skip to content

Instantly share code, notes, and snippets.

@paritosh64ce
Last active April 19, 2018 17:05
Show Gist options
  • Save paritosh64ce/18e87a77c67dec20578facbd7461da21 to your computer and use it in GitHub Desktop.
Save paritosh64ce/18e87a77c67dec20578facbd7461da21 to your computer and use it in GitHub Desktop.
TDD Angular component with Jasmine using @angular/cli
constructor(private mathSvc: MathService) { }
subtract() {
this.result = this.mathSvc.subtract(this.param1, this.param2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment