From 02f33b59bb2a91259eccf2726c85d1fbb454ef4e Mon Sep 17 00:00:00 2001 From: Mateus Badan de Pieri Date: Thu, 30 Mar 2023 13:42:04 +0100 Subject: [PATCH] changing url --- packages/backend-core/tests/tenancy/tenancy.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/backend-core/tests/tenancy/tenancy.spec.ts b/packages/backend-core/tests/tenancy/tenancy.spec.ts index ed9bcba5df..60f789c045 100644 --- a/packages/backend-core/tests/tenancy/tenancy.spec.ts +++ b/packages/backend-core/tests/tenancy/tenancy.spec.ts @@ -25,14 +25,14 @@ jest.mock("../../src/context", () => ({ describe("addTenantToUrl", () => { it("should append tenantId parameter to the URL", () => { - const url = "https://example.com" - const expectedUrl = "https://example.com?tenantId=budibase" + const url = "https://budibase.com" + const expectedUrl = "https://budibase.com?tenantId=budibase" expect(addTenantToUrl(url)).toEqual(expectedUrl) }) it("should append tenantId parameter to the URL query string", () => { - const url = "https://example.com?foo=bar" - const expectedUrl = "https://example.com?foo=bar&tenantId=default" + const url = "https://budibase.com?var=test" + const expectedUrl = "https://budibase.com?var=test&tenantId=default" expect(addTenantToUrl(url)).toEqual(expectedUrl) }) @@ -43,8 +43,8 @@ describe("addTenantToUrl", () => { isMultiTenant: jest.fn(() => false), })) - const url = "https://example.com" - const expectedUrl = "https://example.com" + const url = "https://budibase.com" + const expectedUrl = "https://budibase.com" expect(addTenantToUrl(url)).toEqual(expectedUrl) }) })