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.
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
3 years ago
|
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';
|
||
4 years ago
|
|
||
3 years ago
|
import { SwapOutInfoGraphicsComponent } from './info-graphics.component';
|
||
4 years ago
|
|
||
3 years ago
|
describe('SwapOutInfoGraphicsComponent', () => {
|
||
|
let component: SwapOutInfoGraphicsComponent;
|
||
|
let fixture: ComponentFixture<SwapOutInfoGraphicsComponent>;
|
||
4 years ago
|
|
||
3 years ago
|
beforeEach(waitForAsync(() => {
|
||
4 years ago
|
TestBed.configureTestingModule({
|
||
3 years ago
|
declarations: [SwapOutInfoGraphicsComponent],
|
||
|
imports: [
|
||
|
BrowserAnimationsModule,
|
||
|
SharedModule
|
||
|
],
|
||
|
providers: [
|
||
|
CommonService,
|
||
|
{ provide: DataService, useClass: mockDataService }
|
||
|
]
|
||
|
}).
|
||
|
compileComponents();
|
||
4 years ago
|
}));
|
||
|
|
||
|
beforeEach(() => {
|
||
3 years ago
|
fixture = TestBed.createComponent(SwapOutInfoGraphicsComponent);
|
||
4 years ago
|
component = fixture.componentInstance;
|
||
|
fixture.detectChanges();
|
||
|
});
|
||
|
|
||
|
it('should create', () => {
|
||
|
expect(component).toBeTruthy();
|
||
|
});
|
||
3 years ago
|
|
||
|
afterEach(() => {
|
||
|
TestBed.resetTestingModule();
|
||
|
});
|
||
4 years ago
|
});
|