Skip to content

Commit 037e46c

Browse files
committed
CCM-8420: minor fixes
1 parent 81d9122 commit 037e46c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lambdas/backend-client/src/__tests__/backend-api-client.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ import { ITemplateClient } from '../types/template-client';
66
jest.mock('../template-api-client');
77

88
const templatesApiMock = mockDeep<ITemplateClient>();
9+
const testToken = '000';
910

1011
describe('BackendAPIClient', () => {
1112
test('should default to concrete implementation', async () => {
12-
BackendClient('token');
13+
BackendClient(testToken);
1314

14-
expect(TemplateApiClient).toHaveBeenCalledWith('token');
15+
expect(TemplateApiClient).toHaveBeenCalledWith(testToken);
1516
});
1617

1718
test('should use passed in clients', async () => {
18-
const client = new BackendApiClient('token', templatesApiMock);
19+
const client = new BackendApiClient(testToken, templatesApiMock);
1920

2021
expect(client.templates).toBe(templatesApiMock);
2122
});

scripts/tests/accessibility.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -euo pipefail
44

5-
npm run copy-files-for-testing
6-
75
npm run create-test-user
86

97
npm run build --prefix frontend

0 commit comments

Comments
 (0)