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 { BillingInfoComponent } from './billing-info.component';
// import { EwvViewerService } from '../../ewv-viewer/ewv-viewer.service';
// import { BehaviorSubject } from 'rxjs/BehaviorSubject';
// import { BillingInfoService } from './billing-info.service';
// import { EwvHighlightService } from '../../ewv-viewer/ewv-highlight.service';
// import { BillingMiscellaneousService } from '../billing-miscellaneous/billing-miscellaneous.service';
// import { ServiceLinesService } from '../service-lines/service-lines.service';
// import { OhiLineAdjustmentService } from '../ohi-line-adjustment/ohi-line-adjustment.service';
// import { OhiClaimAdjustmentsService } from '../ohi-claim-adjustments/ohi-claim-adjustments.service';
// import { OhiInfoService } from '../ohi/ohi-info.service';
// describe('BillingInfoComponent', () => {
// let component: BillingInfoComponent;
// let ewvService: EwvViewerService;
// let billingInfoService: BillingInfoService;
// let billingMiscService: BillingMiscellaneousService;
// let ohiInfoService: OhiInfoService;
// let ohiClaimAdjService: OhiClaimAdjustmentsService;
// let ohiLineAdjService: OhiLineAdjustmentService;
// let serviceLinesService: ServiceLinesService;
// let ewvHighlightService: EwvHighlightService;
// beforeEach(() => {
// ewvService = new EwvViewerService(null, null);
// billingInfoService = new BillingInfoService();
// billingMiscService = new BillingMiscellaneousService();
// ohiInfoService = new OhiInfoService();
// ohiClaimAdjService = new OhiClaimAdjustmentsService();
// ohiLineAdjService = new OhiLineAdjustmentService();
// serviceLinesService = new ServiceLinesService();
// ewvHighlightService = new EwvHighlightService(
// billingInfoService, billingMiscService, ohiInfoService,
// ohiClaimAdjService, ohiLineAdjService, serviceLinesService
// );
// component = new BillingInfoComponent(ewvService, billingInfoService, ewvHighlightService);
// jasmine.clock().install();
// });
// afterEach(function() {
// jasmine.clock().uninstall();
// });
// it('should be created', () => {
// expect(component).toBeTruthy();
// });
// it('test ngOnInit method', () => {
// component.isDetail = true;
// component.isRightSide = true;
// component.fetchDifferences = undefined;
// component.dxDiffs = undefined;
// component.eCodesDiffs = undefined;
// component.pxDiffs = undefined;
// component.billingMiscDiffs = undefined;
// component.drugCodesDiffs = undefined;
// component.servLinesEqual = undefined;
// const differencesReturn = [
// ['equal', 'DATA_0'], 'DATA_1', 'DATA_2', 'DATA_3', 'DATA_4', 'DATA_5'
// ];
// billingInfoService.differences = new BehaviorSubject(differencesReturn);
// spyOn(component, 'highlight');
// component.dxCodesShouldHighlight = undefined;
// component.eCodesShouldHighlight = undefined;
// component.pxCodesShouldHighlight = undefined;
// component.ngOnInit();
// expect(component.fetchDifferences).not.toEqual(undefined);
// expect(component.fetchDifferences).not.toEqual(null);
// expect(component.dxDiffs).toEqual('DATA_1');
// expect(component.eCodesDiffs).toEqual('DATA_2');
// expect(component.pxDiffs).toEqual('DATA_3');
// expect(component.billingMiscDiffs).toEqual('DATA_4');
// expect(component.drugCodesDiffs).toEqual('DATA_5');
// expect(component.servLinesEqual).toEqual(undefined);
// expect(component.highlight).toHaveBeenCalled();
// });
// it('test populateData method', () => {
// component.data = {
// patientHeaderInfo: {
// claimType: 'INSTITUTIONAL'
// },
// billingMiscellanous: 'BILLING_MISCELLANOUS'
// };
// expect(component.claimType).toEqual(undefined);
// expect(component.instBillingInfo).toEqual(false);
// expect(component.loading).toEqual(false);
// expect(component.instData).toEqual(undefined);
// expect(component.billingMiscellanous).toEqual(undefined);
// component.populateData();
// expect(component.claimType).toEqual('INSTITUTIONAL');
// expect(component.instBillingInfo).toEqual(true);
// expect(component.loading).toEqual(false);
// expect(component.instData).toEqual(['BILLING_MISCELLANOUS']);
// expect(component.serviceLinesTableColumns).toEqual(
// component.institutionalServiceLinesTableColumns
// );
// expect(component.billingMiscellanous).toEqual('BILLING_MISCELLANOUS');
// });
// it('test ngOnChanges method', () => {
// spyOn(component, 'populateData');
// expect(component.data).toEqual(undefined);
// let changes;
// changes = {
// data: {
// currentValue: 'CURRENT_VALUE'
// }
// };
// component.ngOnChanges(changes);
// jasmine.clock().tick(1);
// expect(component.data).toEqual('CURRENT_VALUE');
// expect(component.populateData).toHaveBeenCalled();
// });
// it('test ngAfterViewInit method', () => {
// spyOn(component, 'populateData');
// spyOn(billingInfoService, 'getInstance');
// component.data = { };
// component.ngAfterViewInit();
// jasmine.clock().tick(1);
// expect(component.data).toEqual({ });
// expect(component.populateData).toHaveBeenCalled();
// expect(billingInfoService.getInstance).toHaveBeenCalled();
// expect(billingInfoService.getInstance).toHaveBeenCalledWith(component);
// });
// it('test ngOnDestroy method: "component.isRightSide" is equal to boolean false', () => {
// spyOn(ewvHighlightService, 'clearBothClaims');
// spyOn(component.collapseStateSubscription, 'unsubscribe');
// spyOn(component.isSplitSubscription, 'unsubscribe');
// spyOn(component.fetchDifferences, 'unsubscribe');
// spyOn(ewvHighlightService, 'clearFirstClaimObject');
// spyOn(ewvHighlightService, 'clearSecondClaimObject');
// component.isRightSide = false;
// component.ngOnDestroy();
// expect(component.collapseStateSubscription.unsubscribe).toHaveBeenCalled();
// expect(component.isSplitSubscription.unsubscribe).toHaveBeenCalled();
// expect(ewvHighlightService.clearBothClaims).not.toHaveBeenCalled();
// expect(component.fetchDifferences.unsubscribe).not.toHaveBeenCalled();
// // expect(ewvHighlightService.clearFirstClaimObject).toHaveBeenCalled();
// // expect(ewvHighlightService.clearSecondClaimObject).not.toHaveBeenCalled();
// });
// it('test getDollarSignString method: input is non-empty string with no spaces and a leading "$" sign', () => {
// const result = component.getDollarSignString('$22.23');
// expect(result).toEqual('$22.23');
// });
// it('test getDisplayInfoForListOfDrugLines method: input parameter is undefined', () => {
// const result = component.getDisplayInfoForListOfDrugLines(undefined);
// expect(result).toEqual([]);
// });
// it('test getDisplayInfoForListOfDrugLines method', () => {
// const result = component.getDisplayInfoForListOfDrugLines([{}, {}]);
// expect(result[0]['drugRx']).toEqual('DRUG RX:');
// });
// });