diff --git a/src/app/workspace/workspace-search/workspace-search.component.spec.ts b/src/app/workspace/workspace-search/workspace-search.component.spec.ts index 10ef5802..6d8045c6 100644 --- a/src/app/workspace/workspace-search/workspace-search.component.spec.ts +++ b/src/app/workspace/workspace-search/workspace-search.component.spec.ts @@ -103,17 +103,17 @@ describe('WorkspaceSearchComponent', () => { it('should correctly assign results if API call returns some data', () => { const portal: Workspace = { + id: 'id', name: 'name', theme: 'theme', - baseUrl: 'url', - id: 'id' + baseUrl: 'url' } apiServiceSpy.getAllPortals.and.returnValue(of([portal])) - component.workspaceItems = [] + component.workspaces = [] component.search() - expect(component.workspaceItems[0]).toEqual(portal) + expect(component.workspaces[0]).toEqual(portal) expect(component.sortField).toEqual('name') })