Skip to content

Commit c7e766a

Browse files
author
alxndrsn
committed
Resolve lint violations
1 parent 57d0de4 commit c7e766a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/pg-query-stream/test/error.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('error recovery', () => {
9494
const pool = new Pool({ max: 1, connectionTimeoutMillis: 400, statement_timeout: 400 })
9595

9696
const res1 = await pool.query('SELECT 1 AS a')
97-
assert.deepStrictEqual(res1.rows, [ { a:1 } ])
97+
assert.deepStrictEqual(res1.rows, [{ a: 1 }])
9898

9999
const query = new QueryStream('SELECT 2 AS b')
100100
const client = await pool.connect()
@@ -106,16 +106,16 @@ describe('error recovery', () => {
106106
await client.release()
107107

108108
const res2 = await pool.query('SELECT 4 AS d')
109-
assert.deepStrictEqual(res2.rows, [ { d:4 } ])
109+
assert.deepStrictEqual(res2.rows, [{ d: 4 }])
110110

111111
await pool.end()
112112
})
113113

114114
it('should work if used after syntax error', async () => {
115-
const pool = new Pool({ max: 1, statement_timeout: 100 }); // statement_timeout is required here, so maybe this is just another timeout error?
115+
const pool = new Pool({ max: 1, statement_timeout: 100 }) // statement_timeout is required here, so maybe this is just another timeout error?
116116

117117
const res1 = await pool.query('SELECT 1 AS a')
118-
assert.deepStrictEqual(res1.rows, [ { a:1 } ])
118+
assert.deepStrictEqual(res1.rows, [{ a: 1 }])
119119

120120
const query = new QueryStream('SELECT 2 AS b')
121121
const client = await pool.connect()
@@ -127,7 +127,7 @@ describe('error recovery', () => {
127127
await client.release()
128128

129129
const res2 = await pool.query('SELECT 4 AS d')
130-
assert.deepStrictEqual(res2.rows, [ { d:4 } ])
130+
assert.deepStrictEqual(res2.rows, [{ d: 4 }])
131131

132132
await pool.end()
133133
})
@@ -165,7 +165,7 @@ describe('error recovery', () => {
165165

166166
// Subsequent query on same connection should succeed
167167
const res = await conn.query('SELECT 1 AS a;')
168-
assert.deepStrictEqual(res.rows, [ { a:1 } ])
168+
assert.deepStrictEqual(res.rows, [{ a: 1 }])
169169

170170
conn.release()
171171
await pool.end()

0 commit comments

Comments
 (0)