Skip to content

Commit 15f70aa

Browse files
committed
Fixed failing user tests
1 parent 94701df commit 15f70aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/src/user/user.e2e-spec.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ describe('UserModule E2E', () => {
3939
1,
4040
1,
4141
AuthType.DEVICE,
42-
'abcd',
42+
'auth1',
4343
'UNDERGRADUATE',
4444
);
4545

46-
const user = await userService.byAuth(AuthType.DEVICE, 'abcd');
46+
const user = await userService.byAuth(AuthType.DEVICE, 'auth1');
4747
expect(user).toBeDefined();
4848
expect(user?.username).toContain('guest');
4949
});
@@ -58,11 +58,11 @@ describe('UserModule E2E', () => {
5858
1,
5959
1,
6060
AuthType.DEVICE,
61-
'abcde',
61+
'auth2',
6262
'UNDERGRADUATE',
6363
);
6464

65-
const user = await userService.byAuth(AuthType.DEVICE, 'abcde');
65+
const user = await userService.byAuth(AuthType.DEVICE, 'auth2');
6666
expect(user).toBeDefined();
6767
await userService.deleteUser(fullAbility, user!);
6868
expect(user).toBeNull;
@@ -77,7 +77,7 @@ describe('UserModule E2E', () => {
7777
1,
7878
1,
7979
AuthType.DEVICE,
80-
'abcdefg',
80+
'auth3',
8181
'UNDERGRADUATE',
8282
);
8383
let oldList = await userSer.getAllUserData();
@@ -88,7 +88,7 @@ describe('UserModule E2E', () => {
8888
1,
8989
1,
9090
AuthType.DEVICE,
91-
'abcdefg',
91+
'auth4',
9292
'UNDERGRADUATE',
9393
);
9494
let newList = await userSer.getAllUserData();

0 commit comments

Comments
 (0)