From 3b1915c7056ba8be2ba4947f063df85ef85befd8 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 22 Jun 2023 12:59:23 +0100 Subject: [PATCH] Add comments --- .../integrations/external-schema/postgres.integration.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa-core/src/integrations/external-schema/postgres.integration.spec.ts b/qa-core/src/integrations/external-schema/postgres.integration.spec.ts index f958258edd..762a16b221 100644 --- a/qa-core/src/integrations/external-schema/postgres.integration.spec.ts +++ b/qa-core/src/integrations/external-schema/postgres.integration.spec.ts @@ -7,10 +7,11 @@ describe("getExternalSchema", () => { describe("postgres", () => { let config: any + // Remove versioning from the outputs to prevent failures when running different pg_dump versions function stripResultsVersions(sql: string) { const result = sql .replace(/\n[^\n]+Dumped from database version[^\n]+\n/, "") - .replace(/\n[^\n]+umped by pg_dump version[^\n]+\n/, "") + .replace(/\n[^\n]+Dumped by pg_dump version[^\n]+\n/, "") .toString() return result }