Add comments

This commit is contained in:
Adria Navarro 2023-06-22 12:59:23 +01:00
parent 48b1f26e86
commit 3b1915c705
1 changed files with 2 additions and 1 deletions

View File

@ -7,10 +7,11 @@ describe("getExternalSchema", () => {
describe("postgres", () => { describe("postgres", () => {
let config: any let config: any
// Remove versioning from the outputs to prevent failures when running different pg_dump versions
function stripResultsVersions(sql: string) { function stripResultsVersions(sql: string) {
const result = sql const result = sql
.replace(/\n[^\n]+Dumped from database version[^\n]+\n/, "") .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() .toString()
return result return result
} }