2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-10-31 09:20:27 +00:00
RTL/src/app/shared/components/ln-services/boltz/swap-out-info-graphics/info-graphics.component.spec.ts

44 lines
1.3 KiB
TypeScript
Raw Normal View History

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';
import { SwapOutInfoGraphicsComponent } from './info-graphics.component';
describe('SwapOutInfoGraphicsComponent', () => {
let component: SwapOutInfoGraphicsComponent;
let fixture: ComponentFixture<SwapOutInfoGraphicsComponent>;
2021-08-28 21:03:18 +00:00
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
2021-08-28 21:03:18 +00:00
declarations: [SwapOutInfoGraphicsComponent],
imports: [
BrowserAnimationsModule,
SharedModule
],
providers: [
CommonService,
{ provide: DataService, useClass: mockDataService }
]
}).
compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SwapOutInfoGraphicsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
2021-08-28 21:03:18 +00:00
afterEach(() => {
TestBed.resetTestingModule();
});
});