Skip to content

Commit b77b402

Browse files
committed
fix(tests): fix reviews
1 parent 6e34934 commit b77b402

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/backend/src/modules/users/controllers/users.controller.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ describe("Users Controller", () => {
4242
});
4343

4444
beforeEach(async () => {
45-
await appLogsRepository.clear();
45+
await appLogsRepository.delete({
46+
userId: authInfo.id,
47+
action: "USER_CREATE",
48+
});
4649
});
4750

4851
describe("> Register user", () => {
@@ -74,6 +77,7 @@ describe("Users Controller", () => {
7477
},
7578
});
7679
expect(logs.length).toEqual(1);
80+
// as the userId is generated, we check only other fields
7781
expect({
7882
userId: logs[0].userId,
7983
structureId: logs[0].structureId,

0 commit comments

Comments
 (0)