Skip to content
Snippets Groups Projects
Commit 23acb4d3 authored by Art Lowel's avatar Art Lowel
Browse files

fixed the remaining tests

parent feca3662
Branches
Tags
No related merge requests found
......@@ -9,11 +9,11 @@ import { Community } from '../core/shared/community.model';
import { PaginationComponentOptions } from '../shared/pagination/pagination-component-options.model';
import { SortDirection, SortOptions } from '../core/cache/models/sort-options.model';
fdescribe('SearchPageComponent', () => {
describe('SearchPageComponent', () => {
let comp: SearchPageComponent;
let fixture: ComponentFixture<SearchPageComponent>;
let searchServiceObject: SearchService;
const mockResults = ['test', 'data'];
const mockResults = Observable.of(['test', 'data']);
const searchServiceStub = {
search: () => mockResults
};
......
......@@ -77,7 +77,7 @@ export class SearchPageComponent implements OnInit, OnDestroy {
if (isNotEmpty(this.scope)) {
this.scopeObject = this.communityService.findById(this.scope);
} else {
this.scopeObject = undefined;
this.scopeObject = Observable.of(undefined);
}
}
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment