Skip to content

Commit 66756e7

Browse files
updated make cstg option
1 parent 5a40dc2 commit 66756e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/unitTests/uid2ApiClient.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { NAME_CURVE, XhrMock, makeCstgOption, makeIdentityV2 } from '../mocks';
1+
import { NAME_CURVE, XhrMock, makeUid2CstgOption, makeIdentityV2 } from '../mocks';
22
import { SuccessCstgResult, ApiClient } from '../apiClient';
33
import { base64ToBytes, bytesToBase64 } from '../encoding/base64';
44
import { sdkWindow } from '../uid2Sdk';
5-
import { Identity } from '../Identity';
65

76
describe('UID2 API client tests', () => {
87
let uid2ApiClient: ApiClient;
@@ -33,7 +32,7 @@ describe('UID2 API client tests', () => {
3332
const makeCstgApiCall = async () => {
3433
return uid2ApiClient.callCstgApi(
3534
{ emailHash: 'lz3+Rj7IV4X1+Vr1ujkG7tstkxwk5pgkqJ6mXbpOgTs=' },
36-
makeCstgOption({ serverPublicKey })
35+
makeUid2CstgOption({ serverPublicKey })
3736
);
3837
};
3938

@@ -70,7 +69,7 @@ describe('UID2 API client tests', () => {
7069
await expect(
7170
uid2ApiClient.callCstgApi(
7271
{ emailHash: 'lz3+Rj7IV4X1+Vr1ujkG7tstkxwk5pgkqJ6mXbpOgTs=' },
73-
makeCstgOption({ serverPublicKey })
72+
makeUid2CstgOption({ serverPublicKey })
7473
)
7574
).rejects.toContain('API error: Response body was invalid for HTTP status 200:');
7675
});

0 commit comments

Comments
 (0)