Commit 8d9a18b5 authored by AllForNothing's avatar AllForNothing
Browse files

Update UI package to latest version


Signed-off-by: default avatarAllForNothing <sshijun@vmware.com>
parent 18f41bad
...@@ -40,9 +40,10 @@ ...@@ -40,9 +40,10 @@
} }
], ],
"scripts": [ "scripts": [
"node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js",
"node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js",
"node_modules/core-js/client/shim.min.js", "node_modules/core-js/client/shim.min.js",
"node_modules/mutationobserver-shim/dist/mutationobserver.min.js", "node_modules/mutationobserver-shim/dist/mutationobserver.min.js",
"node_modules/@webcomponents/custom-elements/custom-elements.min.js",
"node_modules/@clr/icons/clr-icons.min.js", "node_modules/@clr/icons/clr-icons.min.js",
"node_modules/web-animations-js/web-animations.min.js", "node_modules/web-animations-js/web-animations.min.js",
"node_modules/marked/lib/marked.js", "node_modules/marked/lib/marked.js",
...@@ -150,5 +151,8 @@ ...@@ -150,5 +151,8 @@
"@schematics/angular:directive": { "@schematics/angular:directive": {
"prefix": "app" "prefix": "app"
} }
},
"cli": {
"analytics": false
} }
} }
\ No newline at end of file
...@@ -18,7 +18,7 @@ module.exports = function (config) { ...@@ -18,7 +18,7 @@ module.exports = function (config) {
}, },
coverageIstanbulReporter: { coverageIstanbulReporter: {
// reports can be any that are listed here: https://github.com/istanbuljs/istanbuljs/tree/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib // reports can be any that are listed here: https://github.com/istanbuljs/istanbuljs/tree/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib
reports: ['html', 'lcovonly', 'text-summary'], reports: ['json', 'lcovonly', 'text-summary'],
// base output directory. If you include %browser% in the path it will be replaced with the karma browser name // base output directory. If you include %browser% in the path it will be replaced with the karma browser name
dir: path.join(__dirname, 'coverage'), dir: path.join(__dirname, 'coverage'),
......
This diff is collapsed.
{ {
"name": "harbor", "name": "harbor",
"version": "1.10.0", "version": "2.2.0",
"description": "Harbor UI with Clarity", "description": "Harbor UI with Clarity",
"angular-cli": {}, "angular-cli": {},
"scripts": { "scripts": {
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"start": "ng serve --ssl true --ssl-key ssl/server.key --ssl-cert ssl/server.crt --host 0.0.0.0 --proxy-config proxy.config.json", "start": "ng serve --ssl true --ssl-key ssl/server.key --ssl-cert ssl/server.crt --host 0.0.0.0 --proxy-config proxy.config.json",
"lint": "tslint \"src/**/*.ts\"", "lint": "tslint \"src/**/*.ts\"",
"lint_fix": "tslint --fix \"src/**/*.ts\"", "lint_fix": "tslint --fix \"src/**/*.ts\"",
"test": "ng test --code-coverage", "test": "node --max_old_space_size=2048 ./node_modules/@angular/cli/bin/ng test --code-coverage",
"test:watch": "ng test --code-coverage --watch", "test:watch": "ng test --code-coverage --watch",
"test:debug": "ng test --code-coverage --source-map false", "test:debug": "ng test --code-coverage --source-map false",
"test:chrome": "ng test --code-coverage --browsers Chrome", "test:chrome": "ng test --code-coverage --browsers Chrome",
...@@ -24,77 +24,80 @@ ...@@ -24,77 +24,80 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^8.2.0", "@angular/animations": "^10.1.2",
"@angular/common": "^8.2.0", "@angular/common": "^10.1.2",
"@angular/compiler": "^8.2.0", "@angular/compiler": "^10.1.2",
"@angular/core": "^8.2.0", "@angular/core": "^10.1.2",
"@angular/forms": "^8.2.0", "@angular/forms": "^10.1.2",
"@angular/platform-browser": "^8.2.0", "@angular/localize": "^10.1.2",
"@angular/platform-browser-dynamic": "^8.2.0", "@angular/platform-browser": "^10.1.2",
"@angular/router": "^8.2.0", "@angular/platform-browser-dynamic": "^10.1.2",
"@clr/angular": "^2.3.8", "@angular/router": "^10.1.2",
"@clr/icons": "^2.3.8", "@clr/angular": "^4.0.2",
"@clr/ui": "^2.3.8", "@clr/core": "^4.0.2",
"@clr/icons": "^4.0.2",
"@clr/ui": "^4.0.2",
"@fortawesome/fontawesome-free": "^5.1.0-4", "@fortawesome/fontawesome-free": "^5.1.0-4",
"@ng-bootstrap/ng-bootstrap": "^5.1.1", "@ng-bootstrap/ng-bootstrap": "^7.0.0",
"@ngx-translate/core": "^10.0.2", "@ngx-translate/core": "^10.0.2",
"@ngx-translate/http-loader": "^3.0.1", "@ngx-translate/http-loader": "^3.0.1",
"@types/jquery": "^2.0.41", "@types/jquery": "^2.0.41",
"@webcomponents/custom-elements": "^1.2.4", "@webcomponents/custom-elements": "^1.0.0",
"@webcomponents/webcomponentsjs": "^2.0.0",
"buffer": "^5.2.1", "buffer": "^5.2.1",
"core-js": "^2.5.4", "core-js": "^2.5.4",
"intl": "^1.2.5", "intl": "^1.2.5",
"jasmine-core": "^3.3.0", "jasmine-core": "^3.3.0",
"mutationobserver-shim": "^0.3.2", "mutationobserver-shim": "^0.3.2",
"ng-packagr": "^5.3.0", "ng-packagr": "^10.1.0",
"ngx-clipboard": "^12.0.0", "ngx-clipboard": "^12.0.0",
"ngx-cookie": "^1.0.0", "ngx-cookie": "^1.0.0",
"ngx-markdown": "^8.1.0", "ngx-markdown": "^10.1.1",
"popper.js": "^1.14.3", "popper.js": "^1.14.3",
"rxjs": "^6.5.2", "rxjs": "^6.6.3",
"stream": "^0.0.2", "stream": "^0.0.2",
"swagger-ui": "^3.24.0", "swagger-ui": "^3.24.0",
"ts-helpers": "^1.1.1", "ts-helpers": "^1.1.1",
"tslib": "^1.9.0", "tslib": "^2.0.1",
"types": "^0.1.1", "types": "^0.1.1",
"web-animations-js": "^2.3.2", "web-animations-js": "^2.3.2",
"zone.js": "^0.9.1" "zone.js": "^0.10.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.802.0", "@angular-devkit/build-angular": "^0.1001.2",
"@angular-devkit/build-ng-packagr": "~0.802.0", "@angular-devkit/build-ng-packagr": "~0.1001.2",
"@angular/cli": "^8.2.0", "@angular/cli": "^10.1.2",
"@angular/compiler-cli": "^8.2.0", "@angular/compiler-cli": "^10.1.2",
"@angular/language-service": "^8.2.0", "@angular/language-service": "^10.1.2",
"@types/core-js": "^0.9.41", "@types/core-js": "^0.9.41",
"@types/express": "^4.17.2", "@types/express": "^4.17.2",
"@types/jasmine": "^3.3.1", "@types/jasmine": "^3.3.1",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4", "@types/node": "^14.11.2",
"codelyzer": "~5.0.0", "codelyzer": "^6.0.0",
"enhanced-resolve": "^3.0.0", "enhanced-resolve": "^3.0.0",
"express": "^4.17.1", "express": "^4.17.1",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"js-yaml": "^3.13.1", "js-yaml": "^3.13.1",
"karma": "^4.4.1", "karma": "^5.2.2",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~2.2.0",
"karma-cli": "^1.0.1", "karma-cli": "^1.0.1",
"karma-coverage": "^2.0.1", "karma-coverage": "^2.0.3",
"karma-coverage-istanbul-reporter": "~2.0.0", "karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "^2.0.0", "karma-jasmine": "^2.0.0",
"karma-jasmine-html-reporter": "^0.2.2", "karma-jasmine-html-reporter": "^0.2.2",
"karma-mocha-reporter": "^2.2.4", "karma-mocha-reporter": "^2.2.4",
"karma-remap-istanbul": "^0.6.0", "karma-remap-istanbul": "^0.6.0",
"ng-swagger-gen": "^1.8.1", "ng-swagger-gen": "^1.8.1",
"protractor": "^5.4.2", "protractor": "^7.0.0",
"rollup": "^0.41.6", "rollup": "^2.22.0",
"rollup-plugin-commonjs": "^8.0.2", "rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0", "rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^1.0.1", "rollup-plugin-uglify": "^1.0.1",
"ts-node": "~5.0.1", "ts-node": "~5.0.1",
"tsickle": "^0.36.0", "tsickle": "^0.39.1",
"tslint": "~5.9.1", "tslint": "~5.9.1",
"typescript": "^3.5.3", "typescript": "^3.9.7",
"typings": "^2.1.1", "typings": "^2.1.1",
"uglify-js": "3.3.18", "uglify-js": "3.3.18",
"webdriver-manager": "10.2.5" "webdriver-manager": "10.2.5"
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { AccountSettingsModalComponent } from './account-settings-modal.component'; import { AccountSettingsModalComponent } from './account-settings-modal.component';
import { SessionService } from "../../shared/session.service"; import { SessionService } from "../../shared/session.service";
...@@ -66,7 +66,7 @@ describe('AccountSettingsModalComponent', () => { ...@@ -66,7 +66,7 @@ describe('AccountSettingsModalComponent', () => {
navigate: () => { } navigate: () => { }
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [AccountSettingsModalComponent, InlineAlertComponent, ConfirmationDialogComponent], declarations: [AccountSettingsModalComponent, InlineAlertComponent, ConfirmationDialogComponent],
imports: [ imports: [
...@@ -108,7 +108,7 @@ describe('AccountSettingsModalComponent', () => { ...@@ -108,7 +108,7 @@ describe('AccountSettingsModalComponent', () => {
it('should create', () => { it('should create', () => {
expect(component).toBeTruthy(); expect(component).toBeTruthy();
}); });
it('should input right email', async(async () => { it('should input right email', waitForAsync(async () => {
await fixture.whenStable(); await fixture.whenStable();
// Update the title input // Update the title input
userExisting = true; userExisting = true;
......
...@@ -55,14 +55,14 @@ export class AccountSettingsModalComponent implements OnInit, AfterViewChecked { ...@@ -55,14 +55,14 @@ export class AccountSettingsModalComponent implements OnInit, AfterViewChecked {
showSecretDetail = false; showSecretDetail = false;
resetForms = new ResetSecret(); resetForms = new ResetSecret();
showGenerateCli: boolean = false; showGenerateCli: boolean = false;
@ViewChild("confirmationDialog", {static: false}) @ViewChild("confirmationDialog")
confirmationDialogComponent: ConfirmationDialogComponent; confirmationDialogComponent: ConfirmationDialogComponent;
accountFormRef: NgForm; accountFormRef: NgForm;
@ViewChild("accountSettingsFrom", {static: true}) accountForm: NgForm; @ViewChild("accountSettingsFrom", {static: true}) accountForm: NgForm;
@ViewChild("resetSecretFrom", {static: true}) resetSecretFrom: NgForm; @ViewChild("resetSecretFrom", {static: true}) resetSecretFrom: NgForm;
@ViewChild(InlineAlertComponent, {static: false}) inlineAlert: InlineAlertComponent; @ViewChild(InlineAlertComponent) inlineAlert: InlineAlertComponent;
@ViewChild("copyInput", {static: false}) copyInput: CopyInputComponent; @ViewChild("copyInput") copyInput: CopyInputComponent;
constructor( constructor(
private session: SessionService, private session: SessionService,
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { ForgotPasswordComponent } from './forgot-password.component'; import { ForgotPasswordComponent } from './forgot-password.component';
import { ClarityModule } from "@clr/angular"; import { ClarityModule } from "@clr/angular";
...@@ -17,7 +17,7 @@ describe('ForgotPasswordComponent', () => { ...@@ -17,7 +17,7 @@ describe('ForgotPasswordComponent', () => {
sendResetPasswordMail: () => of(null) sendResetPasswordMail: () => of(null)
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ForgotPasswordComponent, InlineAlertComponent], declarations: [ForgotPasswordComponent, InlineAlertComponent],
imports: [ imports: [
......
...@@ -30,7 +30,7 @@ export class ForgotPasswordComponent { ...@@ -30,7 +30,7 @@ export class ForgotPasswordComponent {
isSuccess: boolean = false; isSuccess: boolean = false;
@ViewChild("forgotPasswordFrom", {static: true}) forgotPwdForm: NgForm; @ViewChild("forgotPasswordFrom", {static: true}) forgotPwdForm: NgForm;
@ViewChild(InlineAlertComponent, {static: false}) @ViewChild(InlineAlertComponent)
inlineAlert: InlineAlertComponent; inlineAlert: InlineAlertComponent;
constructor(private pwdService: PasswordSettingService) { } constructor(private pwdService: PasswordSettingService) { }
......
import { async, ComponentFixture, TestBed, flush } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { PasswordSettingService } from './password-setting.service'; import { PasswordSettingService } from './password-setting.service';
import { SessionService } from '../../shared/session.service'; import { SessionService } from '../../shared/session.service';
import { MessageHandlerService } from '../../shared/message-handler/message-handler.service'; import { MessageHandlerService } from '../../shared/message-handler/message-handler.service';
...@@ -25,7 +25,7 @@ describe('PasswordSettingComponent', () => { ...@@ -25,7 +25,7 @@ describe('PasswordSettingComponent', () => {
showSuccess: () => { } showSuccess: () => { }
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ imports: [
ClarityModule, ClarityModule,
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { ResetPasswordComponent } from './reset-password.component'; import { ResetPasswordComponent } from './reset-password.component';
...@@ -17,7 +17,7 @@ describe('ResetPasswordComponent', () => { ...@@ -17,7 +17,7 @@ describe('ResetPasswordComponent', () => {
let fakePasswordSettingService = null; let fakePasswordSettingService = null;
let fakeMessageHandlerService = null; let fakeMessageHandlerService = null;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ imports: [
TranslateModule.forRoot(), TranslateModule.forRoot(),
......
...@@ -38,7 +38,7 @@ export class ResetPasswordComponent implements OnInit { ...@@ -38,7 +38,7 @@ export class ResetPasswordComponent implements OnInit {
confirmPwd: string = ""; confirmPwd: string = "";
@ViewChild("resetPwdForm", {static: true}) resetPwdForm: NgForm; @ViewChild("resetPwdForm", {static: true}) resetPwdForm: NgForm;
@ViewChild(InlineAlertComponent, {static: false}) @ViewChild(InlineAlertComponent)
inlineAlert: InlineAlertComponent; inlineAlert: InlineAlertComponent;
constructor( constructor(
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { UserService } from '../../user/user.service'; import { UserService } from '../../user/user.service';
import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { TranslateModule, TranslateService } from '@ngx-translate/core';
...@@ -15,7 +15,7 @@ describe('SignUpPageComponent', () => { ...@@ -15,7 +15,7 @@ describe('SignUpPageComponent', () => {
let fakeUserService = null; let fakeUserService = null;
let fakeSessionService = null; let fakeSessionService = null;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [SignUpPageComponent, NewUserFormComponent], declarations: [SignUpPageComponent, NewUserFormComponent],
imports: [ imports: [
......
...@@ -35,7 +35,7 @@ export class SignUpPageComponent implements OnInit { ...@@ -35,7 +35,7 @@ export class SignUpPageComponent implements OnInit {
private msgService: MessageService, private msgService: MessageService,
private router: Router) { } private router: Router) { }
@ViewChild(NewUserFormComponent, {static: false}) @ViewChild(NewUserFormComponent)
newUserForm: NewUserFormComponent; newUserForm: NewUserFormComponent;
getNewUser(): User { getNewUser(): User {
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { ClarityModule } from "@clr/angular"; import { ClarityModule } from "@clr/angular";
import { SignUpComponent } from './sign-up.component'; import { SignUpComponent } from './sign-up.component';
import { SessionService } from '../../shared/session.service'; import { SessionService } from '../../shared/session.service';
...@@ -36,7 +36,7 @@ describe('SignUpComponent', () => { ...@@ -36,7 +36,7 @@ describe('SignUpComponent', () => {
creation_time: 'string', creation_time: 'string',
update_time: 'string', update_time: 'string',
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [SignUpComponent, NewUserFormComponent, InlineAlertComponent], declarations: [SignUpComponent, NewUserFormComponent, InlineAlertComponent],
imports: [ imports: [
......
...@@ -42,10 +42,10 @@ export class SignUpComponent { ...@@ -42,10 +42,10 @@ export class SignUpComponent {
@ViewChild(NewUserFormComponent, {static: true}) @ViewChild(NewUserFormComponent, {static: true})
newUserForm: NewUserFormComponent; newUserForm: NewUserFormComponent;
@ViewChild(InlineAlertComponent, {static: false}) @ViewChild(InlineAlertComponent)
inlineAlert: InlineAlertComponent; inlineAlert: InlineAlertComponent;
@ViewChild(Modal, {static: false}) @ViewChild(Modal)
modal: Modal; modal: Modal;
getNewUser(): User { getNewUser(): User {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
import { TestBed, async, ComponentFixture } from '@angular/core/testing'; import { TestBed, waitForAsync, ComponentFixture } from '@angular/core/testing';
import { Title } from '@angular/platform-browser'; import { Title } from '@angular/platform-browser';
import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { CookieService } from 'ngx-cookie'; import { CookieService } from 'ngx-cookie';
...@@ -74,7 +74,7 @@ describe('AppComponent', () => { ...@@ -74,7 +74,7 @@ describe('AppComponent', () => {
fixture.destroy(); fixture.destroy();
}); });
it('should create the app', async(() => { it('should create the app', waitForAsync(() => {
expect(compiled).toBeTruthy(); expect(compiled).toBeTruthy();
})); }));
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { FooterComponent } from './footer.component'; import { FooterComponent } from './footer.component';
...@@ -6,7 +6,7 @@ describe('FooterComponent', () => { ...@@ -6,7 +6,7 @@ describe('FooterComponent', () => {
let component: FooterComponent; let component: FooterComponent;
let fixture: ComponentFixture<FooterComponent>; let fixture: ComponentFixture<FooterComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [FooterComponent] declarations: [FooterComponent]
}) })
......
import { async, ComponentFixture, fakeAsync, getTestBed, TestBed, tick } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, fakeAsync, getTestBed, TestBed, tick } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { GlobalSearchComponent } from './global-search.component'; import { GlobalSearchComponent } from './global-search.component';
import { SearchTriggerService } from './search-trigger.service'; import { SearchTriggerService } from './search-trigger.service';
...@@ -6,7 +6,6 @@ import { FormsModule } from '@angular/forms'; ...@@ -6,7 +6,6 @@ import { FormsModule } from '@angular/forms';
import { AppConfigService } from '../../services/app-config.service'; import { AppConfigService } from '../../services/app-config.service';
import { SkinableConfig } from "../../services/skinable-config.service"; import { SkinableConfig } from "../../services/skinable-config.service";
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { of } from 'rxjs';
describe('GlobalSearchComponent', () => { describe('GlobalSearchComponent', () => {
let component: GlobalSearchComponent; let component: GlobalSearchComponent;
...@@ -33,7 +32,7 @@ describe('GlobalSearchComponent', () => { ...@@ -33,7 +32,7 @@ describe('GlobalSearchComponent', () => {
} }
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ imports: [
TranslateModule.forRoot(), TranslateModule.forRoot(),
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { GlobalSearchService } from './global-search.service'; import { GlobalSearchService } from './global-search.service';
import { SearchResults } from './search-results'; import { SearchResults } from './search-results';
import { SearchTriggerService } from './search-trigger.service'; import { SearchTriggerService } from './search-trigger.service';
...@@ -59,7 +59,7 @@ describe('SearchResultComponent', () => { ...@@ -59,7 +59,7 @@ describe('SearchResultComponent', () => {
searchCloseChan$: of(null), searchCloseChan$: of(null),
clear: () => null clear: () => null
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ imports: [
TranslateModule.forRoot(), TranslateModule.forRoot(),
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { SessionService } from '../../shared/session.service';