From d4b7ac9c986670a24765d508409ead3c42f8f418 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Fri, 21 Jul 2023 17:45:17 +0100 Subject: [PATCH] Generate guid to replace encodeURIComponent Removing encodeURIComponent(accountId) in favour of generating a guid --- .../tests/accounts/accounts.cloud.internal.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qa-core/src/account-api/tests/accounts/accounts.cloud.internal.spec.ts b/qa-core/src/account-api/tests/accounts/accounts.cloud.internal.spec.ts index d3c162ea95..6c1d7eacac 100644 --- a/qa-core/src/account-api/tests/accounts/accounts.cloud.internal.spec.ts +++ b/qa-core/src/account-api/tests/accounts/accounts.cloud.internal.spec.ts @@ -15,9 +15,8 @@ describe("Account Internal Operations", () => { it("performs account deletion by ID", async () => { // Deleting by unknown id doesn't work - const accountId = generator.string() - const encodedAccountId = encodeURIComponent(accountId) - await config.api.accounts.delete(encodedAccountId, { status: 404 }) + const accountId = generator.guid() + await config.api.accounts.delete(accountId, { status: 404 }) // Create new account const [_, account] = await config.api.accounts.create({