implement injectIdentityAuth

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-01-07 20:46:52 +01:00
parent 19ea047412
commit fb565073ec
10 changed files with 177 additions and 137 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ describe('TechDocsStorageClient', () => {
const identityApi: jest.Mocked<IdentityApi> = {
getCredentials: jest.fn(),
} as unknown as jest.Mocked<IdentityApi>;
const fetchApi = new MockFetchApi({ authorization: { identityApi } });
const fetchApi = new MockFetchApi({ injectIdentityAuth: { identityApi } });
beforeEach(() => {
jest.resetAllMocks();