Skip to content

Commit 9107939

Browse files
committed
fix(cli): remove unintended changes
Signed-off-by: Muhammad Aaqil <[email protected]>
1 parent 9ad2521 commit 9107939

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export class Doctor extends Entity {
7676
name?: string;
7777
7878
@belongsTo(() => Doctor)
79-
reportsTo: number;
79+
reportsTo?: number;
80+
8081
// Define well-known properties here
8182
8283
// Indexer property to allow additional data

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

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

113+
const doctorController = path.join(
114+
sandbox.path,
115+
'src/controllers/doctor.controller.ts',
116+
);
117+
const appointmentController = path.join(
118+
sandbox.path,
119+
'src/controllers/appointment.controller.ts',
120+
);
121+
const patientController = path.join(
122+
sandbox.path,
123+
'src/controllers/patient.controller.ts',
124+
);
125+
113126
const defaultExpectedIndexFile = path.join(sandbox.path, 'src/models/index.ts');
114127
const movedExpectedTestModel = path.join(sandbox.path, 'src/test.model.ts');
115128
const movedExpectedIndexFile = path.join(sandbox.path, 'src/index.ts');
@@ -238,6 +251,9 @@ describe('lb4 discover integration', () => {
238251
assert.file(appointmentRepository);
239252
assert.file(patientRepository);
240253
assert.file(doctorRepository);
254+
assert.file(appointmentController);
255+
assert.file(patientController);
256+
assert.file(doctorController);
241257
assert.file(appointmentModel);
242258
expectFileToMatchSnapshot(appointmentModel);
243259
});
@@ -254,6 +270,9 @@ describe('lb4 discover integration', () => {
254270
assert.file(appointmentRepository);
255271
assert.file(patientRepository);
256272
assert.file(doctorRepository);
273+
assert.file(appointmentController);
274+
assert.file(patientController);
275+
assert.file(doctorController);
257276
assert.file(doctorModel);
258277
expectFileToMatchSnapshot(doctorModel);
259278
});

0 commit comments

Comments
 (0)