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.
52 lines
1.9 KiB
TypeScript
52 lines
1.9 KiB
TypeScript
3 years ago
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||
|
import { StoreModule } from '@ngrx/store';
|
||
|
import { CommonService } from '../../../shared/services/common.service';
|
||
|
import { DataService } from '../../../shared/services/data.service';
|
||
|
import { LoggerService } from '../../../shared/services/logger.service';
|
||
|
import { mockDataService, mockLoggerService } 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 { CLNUTXOTablesComponent } from './utxo-tables.component';
|
||
|
import { CLNOnChainUtxosComponent } from './utxos/utxos.component';
|
||
5 years ago
|
|
||
2 years ago
|
describe('CLNUTXOTablesComponent', () => {
|
||
|
let component: CLNUTXOTablesComponent;
|
||
|
let fixture: ComponentFixture<CLNUTXOTablesComponent>;
|
||
5 years ago
|
|
||
3 years ago
|
beforeEach(waitForAsync(() => {
|
||
5 years ago
|
TestBed.configureTestingModule({
|
||
2 years ago
|
declarations: [CLNUTXOTablesComponent, CLNOnChainUtxosComponent],
|
||
3 years ago
|
imports: [
|
||
|
BrowserAnimationsModule,
|
||
|
SharedModule,
|
||
2 years ago
|
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
|
||
3 years ago
|
],
|
||
|
providers: [
|
||
|
CommonService,
|
||
|
{ provide: LoggerService, useClass: mockLoggerService },
|
||
|
{ provide: DataService, useClass: mockDataService }
|
||
|
]
|
||
|
}).
|
||
|
compileComponents();
|
||
5 years ago
|
}));
|
||
|
|
||
|
beforeEach(() => {
|
||
2 years ago
|
fixture = TestBed.createComponent(CLNUTXOTablesComponent);
|
||
5 years ago
|
component = fixture.componentInstance;
|
||
|
fixture.detectChanges();
|
||
|
});
|
||
|
|
||
|
it('should create', () => {
|
||
|
expect(component).toBeTruthy();
|
||
|
});
|
||
3 years ago
|
|
||
|
afterEach(() => {
|
||
|
TestBed.resetTestingModule();
|
||
|
});
|
||
5 years ago
|
});
|