Skip to content

Commit 01eb56b

Browse files
committed
Fix unit test
1 parent a8cc4e9 commit 01eb56b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/server/api/test/unit/authentication/new-user/create-user.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ describe('create-user', () => {
135135
const createdUser = {
136136
id: 'u3',
137137
organizationId: baseParams.organizationId,
138+
password: '12345678',
138139
};
139140
createUserServiceMock.mockResolvedValue(createdUser);
140141
createTablesUserMock.mockResolvedValue({ refresh_token: 't2' });
@@ -146,7 +147,7 @@ describe('create-user', () => {
146147
);
147148

148149
expect(createTablesUserMock).toHaveBeenCalledWith(
149-
expect.objectContaining({ password: 'Rand#123' }),
150+
expect.objectContaining({ password: '12345678' }),
150151
);
151152

152153
expect(res).toEqual({ user: createdUser, tablesRefreshToken: 't2' });

0 commit comments

Comments
 (0)