Skip to content

Commit

Permalink
Fix tests to work against the latest master
Browse files Browse the repository at this point in the history
(which introduced a regression in d7b44ae673)
  • Loading branch information
1st1 committed Mar 28, 2022
1 parent e4df148 commit 3cb5c0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ test("query: basic scalars", async () => {
res = await con.query("select {'a', 'bc'}");
expect(res).toEqual(["a", "bc"]);

res = await con.query(
`select {
res = await con.querySingle(
`select [
-1,
1,
0,
Expand All @@ -69,7 +69,7 @@ test("query: basic scalars", async () => {
-346456723423,
2251799813685125,
-2251799813685125
};
];
`
);
expect(res).toEqual([
Expand Down
9 changes: 5 additions & 4 deletions test/pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ import {getClient} from "./testbase";

test("pool.query: basic scalars", async () => {
const pool = getClient();
let res: any;

try {
let res = await pool.query("select {'a', 'bc'}");
res = await pool.query("select {'a', 'bc'}");
expect(res).toEqual(["a", "bc"]);

res = await pool.query(
`select {
res = await pool.querySingle(
`select [
-1,
1,
0,
Expand All @@ -38,7 +39,7 @@ test("pool.query: basic scalars", async () => {
-346456723423,
2251799813685125,
-2251799813685125
};
];
`
);
expect(res).toEqual([
Expand Down

0 comments on commit 3cb5c0f

Please sign in to comment.