diff --git a/test/functional/query-builder/insert-on-conflict/query-builder-insert-on-conflict.ts b/test/functional/query-builder/insert-on-conflict/query-builder-insert-on-conflict.ts index 438e99c53..fa58bc4e4 100644 --- a/test/functional/query-builder/insert-on-conflict/query-builder-insert-on-conflict.ts +++ b/test/functional/query-builder/insert-on-conflict/query-builder-insert-on-conflict.ts @@ -303,7 +303,7 @@ describe("query builder > insertion > on conflict", () => { ) }), )) - it("should throw error if using indexPredicate amd an unsupported driver", () => { + it("should throw error if using indexPredicate amd an unsupported driver", () => Promise.all( connections.map(async (connection) => { if ( @@ -331,6 +331,5 @@ describe("query builder > insertion > on conflict", () => { expect(sql).to.throw(Error) }), - ) - }) + )) }) diff --git a/test/github-issues/4764/issue-4764.ts b/test/github-issues/4764/issue-4764.ts index e2fde27ef..a46d935fa 100644 --- a/test/github-issues/4764/issue-4764.ts +++ b/test/github-issues/4764/issue-4764.ts @@ -33,7 +33,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { // ------------------------------------------------------------------------- // Specifications // ------------------------------------------------------------------------- - it("should not have Lock clause", async () => { + it("should not have Lock clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (NOLOCK)" @@ -49,10 +49,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have WITH (NOLOCK) clause", async () => { + it("should have WITH (NOLOCK) clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (NOLOCK)" @@ -69,10 +68,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have two WITH (NOLOCK) clause", async () => { + it("should have two WITH (NOLOCK) clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (NOLOCK)" @@ -90,10 +88,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have three WITH (NOLOCK) clause", async () => { + it("should have three WITH (NOLOCK) clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (NOLOCK)" @@ -112,10 +109,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have three WITH (NOLOCK) clause (without relation)", async () => { + it("should have three WITH (NOLOCK) clause (without relation)", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (NOLOCK)" @@ -138,10 +134,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have WITH (HOLDLOCK, ROWLOCK) clause", async () => { + it("should have WITH (HOLDLOCK, ROWLOCK) clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (HOLDLOCK, ROWLOCK)" @@ -158,10 +153,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have WITH (UPLOCK, ROWLOCK) clause", async () => { + it("should have WITH (UPLOCK, ROWLOCK) clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (UPDLOCK, ROWLOCK)" @@ -178,10 +172,9 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) - it("should have two WITH (UPDLOCK, ROWLOCK) clause", async () => { + it("should have two WITH (UPDLOCK, ROWLOCK) clause", () => Promise.all( connections.map(async (connection) => { const lock = " WITH (UPDLOCK, ROWLOCK)" @@ -199,8 +192,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => { await connection.query(selectQuery) }), - ) - }) + )) function countInstances(str: string, word: string) { return str.split(word).length - 1