Created
September 12, 2020 03:02
-
-
Save Qarun-Qadir-Bissoondial/98f96d99b42d235fb0401cf42db3a21f to your computer and use it in GitHub Desktop.
Jasmine test file for basic todo service
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
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