Skip to content

Commit 73d5959

Browse files
committed
CCM-10430: cleanup
1 parent ea74dc7 commit 73d5959

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

lambdas/backend-api/src/__tests__/templates/app/template-client.test.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,32 +1901,6 @@ describe('templateClient', () => {
19011901
});
19021902
});
19031903

1904-
test('should return a failure result, when user has no clientId (so proofing cannot be determined to be enabled)', async () => {
1905-
const { templateClient, mocks } = setup();
1906-
1907-
const result = await templateClient.requestProof(templateId, {
1908-
userId: user.userId,
1909-
clientId: undefined as unknown as string,
1910-
});
1911-
1912-
expect(mocks.clientConfigRepository.get).not.toHaveBeenCalled();
1913-
1914-
expect(
1915-
mocks.templateRepository.proofRequestUpdate
1916-
).not.toHaveBeenCalled();
1917-
1918-
expect(mocks.queueMock.send).not.toHaveBeenCalled();
1919-
1920-
expect(result).toEqual({
1921-
error: {
1922-
errorMeta: {
1923-
code: 403,
1924-
description: 'User cannot request a proof',
1925-
},
1926-
},
1927-
});
1928-
});
1929-
19301904
test('requestProof should return updated template', async () => {
19311905
const { templateClient, mocks } = setup();
19321906

tests/test-team/helpers/auth/cognito-auth-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type TestUserStaticDetails = {
2222

2323
type TestUserDynamicDetails = {
2424
email: string;
25-
clientId: string | undefined;
25+
clientId: string;
2626
password: string;
2727
};
2828

0 commit comments

Comments
 (0)