Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
// import { OhiLineAdjustmentsComponent } from './ohi-line-adjustment.component';
// import { EwvViewerService } from '../../ewv-viewer/ewv-viewer.service';
// import { BehaviorSubject } from 'rxjs/BehaviorSubject';
// import { OhiLineAdjustmentService } from './ohi-line-adjustment.service';
// describe('OhiLineAdjustmentsComponent', () => {
// let component: OhiLineAdjustmentsComponent;
// let ewvViewerService: EwvViewerService;
// let ohiLineAdjustmentService: OhiLineAdjustmentService;
// beforeEach(() => {
// ewvViewerService = new EwvViewerService(null, null);
// ohiLineAdjustmentService = new OhiLineAdjustmentService();
// component = new OhiLineAdjustmentsComponent(ewvViewerService, ohiLineAdjustmentService);
// });
// it('should be created', () => {
// expect(component).toBeTruthy();
// });
// it('test ngAfterViewInit method', () => {
// component.data = { };
// spyOn(component, 'populateData');
// spyOn(ohiLineAdjustmentService, 'getInstance');
// component.ngAfterViewInit();
// expect(component.populateData).toHaveBeenCalled();
// expect(ohiLineAdjustmentService.getInstance).toHaveBeenCalled();
// expect(ohiLineAdjustmentService.getInstance).toHaveBeenCalledWith(component);
// });
// it('test populateData method', () => {
// const detailServiceLineOhiOutputRowsData = [
// { beginDateOfService: '01\/10\/18', revenueCode: '150' },
// { beginDateOfService: '10\/10\/10', revenueCode: '120' },
// { beginDateOfService: '12\/01\/1999', revenueCode: '100' },
// { beginDateOfService: null, revenueCode: null },
// { beginDateOfService: '12\/01\/1999', revenueCode: '50' }
// ];
// component.data = {
// patientHeaderInfo: {
// claimType: 'PROFESSIONAL'
// },
// ohiInfo: {
// detailServiceLineOhiOutputRows: detailServiceLineOhiOutputRowsData
// }
// };
// expect(component.ohiSrvcLineAdjInfo).toEqual(undefined);
// component.populateData();
// const expectedDetailServiceLineOhiOutputRowsData = [
// { beginDateOfService: null, revenueCode: null },
// { beginDateOfService: '12\/01\/1999', revenueCode: '50' },
// { beginDateOfService: '12\/01\/1999', revenueCode: '100' },
// { beginDateOfService: '10\/10\/10', revenueCode: '120' },
// { beginDateOfService: '01\/10\/18', revenueCode: '150' }
// ];
// expect(component.ohiSrvcLineAdjInfo.length).toEqual(5);
// expect(component.ohiSrvcLineAdjInfo).toEqual(expectedDetailServiceLineOhiOutputRowsData);
// });
// it('test getDate method', () => {
// const aDate = component.getDate('12\/01');
// expect(aDate).toEqual(null);
// });
// it('test populateData method', () => {
// component.data = { };
// ewvViewerService.isSplitView = new BehaviorSubject<boolean>(false);
// expect(component.isSplitView).toEqual(undefined);
// component.populateData();
// expect(component.isSplitView).toEqual(false);
// });
// it('test ngOnChanges method', () => {
// spyOn(component, 'populateData');
// expect(component.data).toEqual(undefined);
// const differencesReturn = [
// 'DATA_0', 'DATA_1', 'DATA_2', 'DATA_3', 'DATA_4'
// ];
// ohiLineAdjustmentService.differences = new BehaviorSubject(differencesReturn);
// expect(component.ohiSrvcLineAdjInfoDiffs).toEqual(undefined);
// let changes;
// changes = {
// data: {
// // currentValue: 'CURRENT_VALUE'
// }
// };
// component.ngOnChanges(changes);
// expect(component.data).toEqual(undefined);
// expect(component.populateData).not.toHaveBeenCalled();
// expect(component.ohiSrvcLineAdjInfoDiffs).toEqual(undefined);
// });
// it('test ngOnDestroy method', () => {
// spyOn(component.collapseStateSubscription, 'unsubscribe');
// spyOn(component.isSplitSubscription, 'unsubscribe');
// component.ngOnDestroy();
// expect(component.collapseStateSubscription.unsubscribe).toHaveBeenCalled();
// expect(component.isSplitSubscription.unsubscribe).toHaveBeenCalled();
// });
// it('test getDollarSignString method', () => {
// const result = component.getDollarSignString('22.23');
// expect(result).toEqual('$22.23');
// });
// it('test getDisplayString method', () => {
// const result = component.getDisplayString(' 22.23 ');
// expect(result).toEqual('22.23');
// });
// });