()
| 131 | const queryStream = new QueryStream("ELECT 1"); |
| 132 | |
| 133 | const fetchData = async () => { |
| 134 | const rows = []; |
| 135 | for await (const row of client.query(queryStream)) { |
| 136 | rows.push(row); |
| 137 | } |
| 138 | }; |
| 139 | |
| 140 | await expect(fetchData).rejects.toThrow( |
| 141 | "Expected a keyword at the beginning of a statement", |