Skip to content

Instantly share code, notes, and snippets.

@Qarun-Qadir-Bissoondial
Created September 12, 2020 03:02
Show Gist options
  • Save Qarun-Qadir-Bissoondial/98f96d99b42d235fb0401cf42db3a21f to your computer and use it in GitHub Desktop.
Save Qarun-Qadir-Bissoondial/98f96d99b42d235fb0401cf42db3a21f to your computer and use it in GitHub Desktop.
Jasmine test file for basic todo service
import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { TodoService } from './todo.service';
fdescribe('TodoService', () => {
let service: TodoService;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule]
});
service = TestBed.inject(TodoService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment