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.
49 lines
1.8 KiB
TypeScript
49 lines
1.8 KiB
TypeScript
3 years ago
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||
|
import { EffectsModule } from '@ngrx/effects';
|
||
|
import { StoreModule } from '@ngrx/store';
|
||
|
import { mockCLEffects, mockECLEffects, mockLNDEffects, mockRTLEffects } from '../../../shared/test-helpers/mock-services';
|
||
|
import { SharedModule } from '../../../shared/shared.module';
|
||
5 years ago
|
|
||
3 years ago
|
import { RootReducer } from '../../../store/rtl.reducers';
|
||
|
import { LNDReducer } from '../../../lnd/store/lnd.reducers';
|
||
2 years ago
|
import { CLNReducer } from '../../../cln/store/cln.reducers';
|
||
3 years ago
|
import { ECLReducer } from '../../../eclair/store/ecl.reducers';
|
||
2 years ago
|
import { CLNEffects } from '../../store/cln.effects';
|
||
|
import { CLNOnChainReceiveComponent } from './on-chain-receive.component';
|
||
5 years ago
|
|
||
2 years ago
|
describe('CLNOnChainReceiveComponent', () => {
|
||
|
let component: CLNOnChainReceiveComponent;
|
||
|
let fixture: ComponentFixture<CLNOnChainReceiveComponent>;
|
||
5 years ago
|
|
||
3 years ago
|
beforeEach(waitForAsync(() => {
|
||
5 years ago
|
TestBed.configureTestingModule({
|
||
2 years ago
|
declarations: [CLNOnChainReceiveComponent],
|
||
3 years ago
|
imports: [
|
||
|
BrowserAnimationsModule,
|
||
|
SharedModule,
|
||
2 years ago
|
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer }),
|
||
3 years ago
|
EffectsModule.forRoot([mockRTLEffects, mockLNDEffects, mockCLEffects, mockECLEffects])
|
||
|
],
|
||
|
providers: [
|
||
2 years ago
|
{ provide: CLNEffects, useClass: mockCLEffects }
|
||
3 years ago
|
]
|
||
|
}).
|
||
|
compileComponents();
|
||
5 years ago
|
}));
|
||
|
|
||
|
beforeEach(() => {
|
||
2 years ago
|
fixture = TestBed.createComponent(CLNOnChainReceiveComponent);
|
||
5 years ago
|
component = fixture.componentInstance;
|
||
|
fixture.detectChanges();
|
||
|
});
|
||
|
|
||
|
it('should create', () => {
|
||
|
expect(component).toBeTruthy();
|
||
|
});
|
||
3 years ago
|
|
||
|
afterEach(() => {
|
||
|
TestBed.resetTestingModule();
|
||
|
});
|
||
5 years ago
|
});
|