|
1 | | -import { NAME_CURVE, XhrMock, makeCstgOption, makeIdentityV2 } from '../mocks'; |
| 1 | +import { NAME_CURVE, XhrMock, makeUid2CstgOption, makeIdentityV2 } from '../mocks'; |
2 | 2 | import { SuccessCstgResult, ApiClient } from '../apiClient'; |
3 | 3 | import { base64ToBytes, bytesToBase64 } from '../encoding/base64'; |
4 | 4 | import { sdkWindow } from '../uid2Sdk'; |
5 | | -import { Identity } from '../Identity'; |
6 | 5 |
|
7 | 6 | describe('UID2 API client tests', () => { |
8 | 7 | let uid2ApiClient: ApiClient; |
@@ -33,7 +32,7 @@ describe('UID2 API client tests', () => { |
33 | 32 | const makeCstgApiCall = async () => { |
34 | 33 | return uid2ApiClient.callCstgApi( |
35 | 34 | { emailHash: 'lz3+Rj7IV4X1+Vr1ujkG7tstkxwk5pgkqJ6mXbpOgTs=' }, |
36 | | - makeCstgOption({ serverPublicKey }) |
| 35 | + makeUid2CstgOption({ serverPublicKey }) |
37 | 36 | ); |
38 | 37 | }; |
39 | 38 |
|
@@ -70,7 +69,7 @@ describe('UID2 API client tests', () => { |
70 | 69 | await expect( |
71 | 70 | uid2ApiClient.callCstgApi( |
72 | 71 | { emailHash: 'lz3+Rj7IV4X1+Vr1ujkG7tstkxwk5pgkqJ6mXbpOgTs=' }, |
73 | | - makeCstgOption({ serverPublicKey }) |
| 72 | + makeUid2CstgOption({ serverPublicKey }) |
74 | 73 | ) |
75 | 74 | ).rejects.toContain('API error: Response body was invalid for HTTP status 200:'); |
76 | 75 | }); |
|
0 commit comments