diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/instance.test.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.test.ts b/packages/merchant-backoffice-ui/src/hooks/instance.test.ts index 0c0c44590..ee1576764 100644 --- a/packages/merchant-backoffice-ui/src/hooks/instance.test.ts +++ b/packages/merchant-backoffice-ui/src/hooks/instance.test.ts @@ -35,6 +35,7 @@ import { API_DELETE_INSTANCE, API_GET_CURRENT_INSTANCE, API_LIST_INSTANCES, + API_NEW_LOGIN, API_UPDATE_CURRENT_INSTANCE, API_UPDATE_CURRENT_INSTANCE_AUTH, API_UPDATE_INSTANCE_BY_ID, @@ -140,7 +141,6 @@ describe("instance api interaction with details", () => { name: "instance_name", auth: { method: "token", - token: "not-secret", }, }); env.addRequestExpectation(API_UPDATE_CURRENT_INSTANCE_AUTH, { @@ -149,6 +149,16 @@ describe("instance api interaction with details", () => { token: "secret", } as MerchantBackend.Instances.InstanceAuthConfigurationMessage, }); + env.addRequestExpectation(API_NEW_LOGIN, { + auth: "secret", + request: { + scope: "write", + duration: { + "d_us": "forever", + }, + refreshable: true, + }, + }); env.addRequestExpectation(API_GET_CURRENT_INSTANCE, { response: { name: "instance_name", @@ -171,7 +181,7 @@ describe("instance api interaction with details", () => { name: "instance_name", auth: { method: "token", - token: "secret", + // token: "secret", }, }); }, @@ -217,7 +227,7 @@ describe("instance api interaction with details", () => { name: "instance_name", auth: { method: "token", - token: "not-secret", + // token: "not-secret", }, }); env.addRequestExpectation(API_UPDATE_CURRENT_INSTANCE_AUTH, { |