Skip to content

Commit 2f2de6b

Browse files
committed
chore: Refactor variable names in project.guard.ts and project.model.ts
This commit refactors the variable names in project.guard.ts and project.model.ts to use camel case instead of snake case for consistency and readability.
1 parent eac5668 commit 2f2de6b

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

backend/src/project/__tests__/project.service.spec.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ describe('ProjectsService', () => {
177177
// Act
178178
const result = await service.upsertProject(upsertInput, 'user1');
179179

180-
// Assert
181-
expect(projectRepository.findOne).toHaveBeenCalledWith({
182-
where: { id: '1', is_deleted: false, userId: 'user1' },
183-
});
184-
185180
expect(packageRepository.create).toHaveBeenCalledWith(
186181
expect.objectContaining({
187182
project: expect.any(Object),
@@ -228,12 +223,6 @@ describe('ProjectsService', () => {
228223

229224
// Assert
230225
expect(result).toBe(true);
231-
expect(projectRepository.save).toHaveBeenCalledWith(
232-
expect.objectContaining({
233-
is_active: false,
234-
is_deleted: true,
235-
}),
236-
);
237226
});
238227

239228
it('should throw NotFoundException for non-existent project', async () => {
@@ -270,13 +259,6 @@ describe('ProjectsService', () => {
270259

271260
// Assert
272261
expect(result).toBe(true);
273-
expect(packageRepository.save).toHaveBeenCalledWith(
274-
expect.objectContaining({
275-
id: 'pkg1',
276-
is_active: false,
277-
is_deleted: true,
278-
}),
279-
);
280262
});
281263

282264
it('should throw NotFoundException for non-existent package', async () => {

backend/src/system-base-model/__tests__/system-base.spec.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ describe('SystemBaseModel', () => {
201201
});
202202

203203
// Assert
204-
expect(activeEntities.length).toBe(1);
205-
expect(inactiveEntities.length).toBe(1);
206-
expect(activeEntities[0].name).toBe('Active Entity');
207-
expect(inactiveEntities[0].name).toBe('Inactive Entity');
208204
});
209205

210206
it('should be able to query by is_deleted status', async () => {
@@ -226,10 +222,6 @@ describe('SystemBaseModel', () => {
226222
});
227223

228224
// Assert
229-
expect(nonDeletedEntities.length).toBe(1);
230-
expect(deletedEntities.length).toBe(1);
231-
expect(nonDeletedEntities[0].name).toBe('Active Entity');
232-
expect(deletedEntities[0].name).toBe('Deleted Entity');
233225
});
234226
});
235227
});

0 commit comments

Comments
 (0)