Skip to content

Commit 75ea058

Browse files
committed
remove test refs to usersub in amplify-utils
1 parent 3d43070 commit 75ea058

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/__tests__/utils/amplify-utils.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('amplify-utils', () => {
2727
jest.resetAllMocks();
2828
});
2929

30-
test('getSessionServer - should return the auth token, clientID and userSub', async () => {
30+
test('getSessionServer - should return the auth token and clientID', async () => {
3131
const mockAccessToken = {
3232
toString: () =>
3333
sign(
@@ -73,7 +73,7 @@ describe('amplify-utils', () => {
7373

7474
const result = await getSessionServer();
7575

76-
expect(result).toEqual({ accessToken: undefined, userSub: undefined });
76+
expect(result).toEqual({ accessToken: undefined });
7777
});
7878

7979
test('getSessionServer - should return undefined properties if an error occurs', async () => {
@@ -83,7 +83,7 @@ describe('amplify-utils', () => {
8383

8484
const result = await getSessionServer();
8585

86-
expect(result).toEqual({ accessToken: undefined, userSub: undefined });
86+
expect(result).toEqual({ accessToken: undefined });
8787
});
8888

8989
describe('getSessionId', () => {

0 commit comments

Comments
 (0)