Skip to content

Commit cd5b7b2

Browse files
committed
Merge branch 'BN-49-Frontend' of https://github.com/bahnew/bahmni-clinical-frontend into BN-49-Frontend
2 parents 88899ee + a4833ac commit cd5b7b2

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/displayControls/labinvestigation/__tests__/LabInvestigationControl.test.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,19 @@ jest.mock('@carbon/react', () => ({
5050
</div>
5151
),
5252
// Add the missing SkeletonText component mock
53-
SkeletonText: ({ lineCount, width }: { lineCount: number; width: string }) => (
53+
SkeletonText: ({
54+
lineCount,
55+
width,
56+
}: {
57+
lineCount: number;
58+
width: string;
59+
}) => (
5460
<div data-testid="skeleton-text" style={{ width }}>
55-
{Array(lineCount).fill(0).map((_, i) => (
56-
<div key={i} className="skeleton-line"></div>
57-
))}
61+
{Array(lineCount)
62+
.fill(0)
63+
.map((_, i) => (
64+
<div key={i} className="skeleton-line"></div>
65+
))}
5866
</div>
5967
),
6068
}));

src/hooks/useLabInvestigations.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { useState, useEffect } from 'react';
2-
import { FormattedLabTest } from '../types/labInvestigation';
3-
import {
4-
getLabTests,
5-
formatLabTests,
6-
} from '../services/labInvestigationService';
2+
import { FormattedLabTest } from '@types/labInvestigation';
3+
import { getLabTests, formatLabTests } from '@services/labInvestigationService';
74
import { usePatientUUID } from './usePatientUUID';
85

96
/**

0 commit comments

Comments
 (0)