Upgrade to angular v11
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { MatDialogRef } from '@angular/material/dialog';
|
||||
|
||||
import { ReceiptDialogComponent } from './receipt-dialog.component';
|
||||
@ -7,7 +7,7 @@ describe('ReceiptDialogComponent', () => {
|
||||
let component: ReceiptDialogComponent;
|
||||
let fixture: ComponentFixture<ReceiptDialogComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [MatDialogRef],
|
||||
declarations: [ReceiptDialogComponent],
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
@ -9,7 +9,7 @@ describe('ReceiptComponent', () => {
|
||||
let component: ReceiptComponent;
|
||||
let fixture: ComponentFixture<ReceiptComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
|
||||
declarations: [ReceiptComponent],
|
||||
|
||||
Reference in New Issue
Block a user