You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
import { mockMatDialogRef } from '../../../shared/test-helpers/mock-services';
|
|
import { SharedModule } from '../../../shared/shared.module';
|
|
|
|
import { ECLPaymentInformationComponent } from './payment-information.component';
|
|
|
|
describe('ECLPaymentInformationComponent', () => {
|
|
let component: ECLPaymentInformationComponent;
|
|
let fixture: ComponentFixture<ECLPaymentInformationComponent>;
|
|
|
|
beforeEach(waitForAsync(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [ECLPaymentInformationComponent],
|
|
imports: [SharedModule],
|
|
providers: [
|
|
{ provide: MatDialogRef, useClass: mockMatDialogRef },
|
|
{ provide: MAT_DIALOG_DATA, useValue: { payment: {}, sentPaymentInfo: {} } }
|
|
]
|
|
}).
|
|
compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(ECLPaymentInformationComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
|
|
afterEach(() => {
|
|
TestBed.resetTestingModule();
|
|
});
|
|
});
|