Skip to content

Commit c14a70c

Browse files
committed
fix: update tests
Signed-off-by: Muhammad Aaqil <[email protected]>
1 parent 9107939 commit c14a70c

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

packages/cli/lib/base-generator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ module.exports = class BaseGenerator extends Generator {
461461
);
462462
}
463463
}
464+
process.exit(0);
464465
}
465466

466467
/**

packages/cli/test/integration/generators/discover.integration.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ const patientRepository = path.join(
110110
'src/repositories/patient.repository.ts',
111111
);
112112

113-
const doctorController = path.join(
113+
const doctorDoctorController = path.join(
114114
sandbox.path,
115-
'src/controllers/doctor.controller.ts',
115+
'src/controllers/doctor-doctor.controller.ts',
116116
);
117-
const appointmentController = path.join(
117+
const appointmentDoctorController = path.join(
118118
sandbox.path,
119-
'src/controllers/appointment.controller.ts',
119+
'src/controllers/appointment-doctor.controller.ts',
120120
);
121-
const patientController = path.join(
121+
const appointmentPatientController = path.join(
122122
sandbox.path,
123-
'src/controllers/patient.controller.ts',
123+
'src/controllers/appointment-patient.controller.ts',
124124
);
125125

126126
const defaultExpectedIndexFile = path.join(sandbox.path, 'src/models/index.ts');
@@ -251,9 +251,9 @@ describe('lb4 discover integration', () => {
251251
assert.file(appointmentRepository);
252252
assert.file(patientRepository);
253253
assert.file(doctorRepository);
254-
assert.file(appointmentController);
255-
assert.file(patientController);
256-
assert.file(doctorController);
254+
assert.file(appointmentDoctorController);
255+
assert.file(appointmentPatientController);
256+
assert.file(doctorDoctorController);
257257
assert.file(appointmentModel);
258258
expectFileToMatchSnapshot(appointmentModel);
259259
});
@@ -270,9 +270,9 @@ describe('lb4 discover integration', () => {
270270
assert.file(appointmentRepository);
271271
assert.file(patientRepository);
272272
assert.file(doctorRepository);
273-
assert.file(appointmentController);
274-
assert.file(patientController);
275-
assert.file(doctorController);
273+
assert.file(appointmentDoctorController);
274+
assert.file(appointmentPatientController);
275+
assert.file(doctorDoctorController);
276276
assert.file(doctorModel);
277277
expectFileToMatchSnapshot(doctorModel);
278278
});

0 commit comments

Comments
 (0)