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.
58 lines
2.2 KiB
TypeScript
58 lines
2.2 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 { RTLReducer } from '../../store/rtl.reducers';
|
|
import { CLOnChainComponent } from './on-chain.component';
|
|
import { CLOnChainUtxosComponent } from './utxo-tables/utxos/utxos.component';
|
|
import { CLOnChainSendComponent } from './on-chain-send/on-chain-send.component';
|
|
import { CLOnChainReceiveComponent } from './on-chain-receive/on-chain-receive.component';
|
|
import { CurrencyUnitConverterComponent } from '../../shared/components/currency-unit-converter/currency-unit-converter.component';
|
|
import { CommonService } from '../../shared/services/common.service';
|
|
import { mockDataService, mockLoggerService } from '../../shared/test-helpers/mock-services';
|
|
import { CLUTXOTablesComponent } from './utxo-tables/utxo-tables.component';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { DataService } from '../../shared/services/data.service';
|
|
|
|
describe('CLOnChainComponent', () => {
|
|
let component: CLOnChainComponent;
|
|
let fixture: ComponentFixture<CLOnChainComponent>;
|
|
|
|
beforeEach(waitForAsync(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [CLOnChainComponent, CurrencyUnitConverterComponent, CLUTXOTablesComponent, CLOnChainUtxosComponent, CLOnChainSendComponent, CLOnChainReceiveComponent],
|
|
imports: [
|
|
BrowserAnimationsModule,
|
|
SharedModule,
|
|
RouterTestingModule,
|
|
StoreModule.forRoot(RTLReducer, {
|
|
runtimeChecks: {
|
|
strictStateImmutability: false,
|
|
strictActionImmutability: false
|
|
}
|
|
})
|
|
],
|
|
providers: [
|
|
CommonService,
|
|
{ provide: DataService, useClass: mockDataService }
|
|
]
|
|
}).
|
|
compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(CLOnChainComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
|
|
afterEach(() => {
|
|
TestBed.resetTestingModule();
|
|
});
|
|
});
|