Skip to content

Commit 10d2d53

Browse files
committed
fix: test files
1 parent c26a616 commit 10d2d53

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

tests/billing.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ describe('Billing Integration Tests', () => {
5959
.set('Authorization', `Bearer ${adminToken}`)
6060
.send({
6161
patient: 'patId',
62-
amount: 1500
62+
amount: 1500,
63+
paymentMode: 'cash',
6364
// appointment is optional per controller
6465
});
6566

tests/billing_flow.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ describe('HMS Billing Flow Integration', () => {
6363
patient: patientId,
6464
amount: 500,
6565
status: 'pending',
66+
paymentMode: 'cash',
6667
items: [{ desc: 'Consultation', price: 500 }]
6768
});
6869

tests/patient.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('Patient Integration Tests', () => {
6060
});
6161

6262
expect(res.statusCode).toBe(201);
63-
expect(res.body._id).toBeDefined();
63+
expect(res.body.data._id).toBeDefined();
6464
});
6565

6666
it('should fail if missing required patient details', async () => {

tests/patient_flow.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('HMS Patient Flow Integration', () => {
5555

5656
expect(res.statusCode).toBe(201);
5757
expect(res.body._id).toBeDefined();
58-
patientId = res.body._id;
58+
patientId = res.body.data._id;
5959
});
6060

6161
it('2. Should fetch patient by ID (Verifying the 404 fix)', async () => {

0 commit comments

Comments
 (0)