Removed deprecated helper function async

This commit is contained in:
Giuseppe Digilio
2021-01-07 20:12:15 +01:00
parent 4d4e920f0d
commit e5af894077
418 changed files with 2114 additions and 1912 deletions

View File

@@ -59,7 +59,7 @@ describe('SubmissionSectionContainerComponent test suite', () => {
submissionServiceStub.getActiveSectionId.and.returnValue(observableOf('traditionalpageone'));
}
// async beforeEach
// waitForAsync beforeEach
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({

View File

@@ -1,4 +1,4 @@
import { async, TestBed } from '@angular/core/testing';
import { waitForAsync, TestBed } from '@angular/core/testing';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import {
@@ -59,7 +59,7 @@ describe('SectionFormOperationsService test suite', () => {
type: 'remove'
};
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
TranslateModule.forRoot({

View File

@@ -1,4 +1,4 @@
import { async, TestBed } from '@angular/core/testing';
import { waitForAsync, TestBed } from '@angular/core/testing';
import { cold, getTestScheduler } from 'jasmine-marbles';
import { of as observableOf } from 'rxjs';
@@ -59,7 +59,7 @@ describe('SectionsService test suite', () => {
select: jasmine.createSpy('select')
});
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
StoreModule.forRoot({ submissionReducers } as any, storeModuleConfig),

View File

@@ -1,5 +1,5 @@
import { ChangeDetectorRef, Component, NO_ERRORS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, inject, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, inject, TestBed } from '@angular/core/testing';
import { BrowserModule } from '@angular/platform-browser';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
@@ -53,7 +53,7 @@ describe('SubmissionSectionUploadFileEditComponent test suite', () => {
const fileId = '123456-test-upload';
const fileData: any = mockUploadFiles[0];
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserModule,

View File

@@ -1,5 +1,5 @@
import { ChangeDetectorRef, Component, NO_ERRORS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, fakeAsync, inject, TestBed, tick } from '@angular/core/testing';
import { ComponentFixture, fakeAsync, inject, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { BrowserModule, By } from '@angular/platform-browser';
import { CommonModule } from '@angular/common';
@@ -81,7 +81,7 @@ describe('SubmissionSectionUploadFileComponent test suite', () => {
remove: jasmine.createSpy('remove'),
});
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserModule,