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.
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { CLNodeInfoComponent } from './node-info.component';
|
|
import { CommonService } from '../../../shared/services/common.service';
|
|
|
|
describe('CLNodeInfoComponent', () => {
|
|
let component: CLNodeInfoComponent;
|
|
let fixture: ComponentFixture<CLNodeInfoComponent>;
|
|
const mockCommonService = jasmine.createSpyObj("CommonService",["getScreenSize","setScreenSize",
|
|
"sortDescByKey","camelCase","titleCase","convertCurrency","convertWithoutFiat","convertWithFiat",
|
|
"convertTime","convertTimestampToDate","downloadFile","convertToCSV"]);
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [ CLNodeInfoComponent ],
|
|
providers: [
|
|
{ provide: CommonService, useValue: mockCommonService }
|
|
]
|
|
})
|
|
.compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(CLNodeInfoComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|