mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Angular 6 (#556)
* upgrade to angular 6 (with rxjs-compat) * fix tests * fix test scripts * upgrade rxjs to 6.0 * remove rxjs-compat layer * update unit tests * restore tests * context-menu transparent backdrop * upgrade libs * changed snackbar locator * locator as class * remove locator element reference * snackbar locators * wait for snackbar before executing the action button * expect cdk-overlay before mat-menu-panel condition * update libs
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import { of } from 'rxjs';
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import {
|
||||
@@ -155,7 +155,7 @@ describe('LibrariesComponent', () => {
|
||||
|
||||
it('navigates to node id', () => {
|
||||
const document = { id: 'documentId' };
|
||||
spyOn(contentApi, 'getNode').and.returnValue(Observable.of({ entry: document }));
|
||||
spyOn(contentApi, 'getNode').and.returnValue(of({ entry: document }));
|
||||
|
||||
component.navigate(node.id);
|
||||
|
||||
|
Reference in New Issue
Block a user