test(aio): correct usage of fakeAsync and inject together in test

Corrects a test which wrapped the fakeAsync call in an inject call.  This caused
the test to not actually run.
This commit is contained in:
Joey Perrott 2017-12-08 15:27:44 -08:00 committed by Alex Rickabaugh
parent 05ff6c09ca
commit a4742763b9
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ describe('SearchBoxComponent', () => {
describe('initialisation', () => {
it('should get the current search query from the location service',
inject([LocationService], (location: MockLocationService) => fakeAsync(() => {
fakeAsync(inject([LocationService], (location: MockLocationService) => {
location.search.and.returnValue({ search: 'initial search' });
component.ngOnInit();
expect(location.search).toHaveBeenCalled();