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.
RTL/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.spe...

42 lines
1.3 KiB
TypeScript

import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { StoreModule } from '@ngrx/store';
import { SharedModule } from '../../../shared/shared.module';
import { RootReducer } from '../../../store/rtl.reducers';
import { LNDReducer } from '../../../lnd/store/lnd.reducers';
import { CLNReducer } from '../../../cln/store/cln.reducers';
import { ECLReducer } from '../../../eclair/store/ecl.reducers';
import { OnChainSendComponent } from './on-chain-send.component';
describe('OnChainSendComponent', () => {
let component: OnChainSendComponent;
let fixture: ComponentFixture<OnChainSendComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [OnChainSendComponent],
imports: [
SharedModule,
RouterTestingModule,
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
]
}).
compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(OnChainSendComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
afterEach(() => {
TestBed.resetTestingModule();
});
});