2021-08-28 21:03:18 +00:00
|
|
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
|
|
|
|
import { CommonService } from '../../../../../shared/services/common.service';
|
|
|
|
import { DataService } from '../../../../services/data.service';
|
|
|
|
import { mockDataService, mockLoggerService } from '../../../../test-helpers/mock-services';
|
|
|
|
import { SharedModule } from '../../../../shared.module';
|
2020-03-16 15:57:57 +00:00
|
|
|
|
2021-02-21 19:02:31 +00:00
|
|
|
import { SwapOutInfoGraphicsComponent } from './info-graphics.component';
|
2020-03-16 15:57:57 +00:00
|
|
|
|
2021-02-21 19:02:31 +00:00
|
|
|
describe('SwapOutInfoGraphicsComponent', () => {
|
|
|
|
let component: SwapOutInfoGraphicsComponent;
|
|
|
|
let fixture: ComponentFixture<SwapOutInfoGraphicsComponent>;
|
2020-03-16 15:57:57 +00:00
|
|
|
|
2021-08-28 21:03:18 +00:00
|
|
|
beforeEach(waitForAsync(() => {
|
2020-03-16 15:57:57 +00:00
|
|
|
TestBed.configureTestingModule({
|
2021-08-28 21:03:18 +00:00
|
|
|
declarations: [SwapOutInfoGraphicsComponent],
|
|
|
|
imports: [
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
SharedModule
|
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
CommonService,
|
|
|
|
{ provide: DataService, useClass: mockDataService }
|
|
|
|
]
|
|
|
|
}).
|
|
|
|
compileComponents();
|
2020-03-16 15:57:57 +00:00
|
|
|
}));
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2021-02-21 19:02:31 +00:00
|
|
|
fixture = TestBed.createComponent(SwapOutInfoGraphicsComponent);
|
2020-03-16 15:57:57 +00:00
|
|
|
component = fixture.componentInstance;
|
|
|
|
fixture.detectChanges();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should create', () => {
|
|
|
|
expect(component).toBeTruthy();
|
|
|
|
});
|
2021-08-28 21:03:18 +00:00
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
TestBed.resetTestingModule();
|
|
|
|
});
|
2020-03-16 15:57:57 +00:00
|
|
|
});
|