()
| 185 | ]; |
| 186 | |
| 187 | async function main() { |
| 188 | const database = new Database(getConfig()); |
| 189 | |
| 190 | await Promise.all( |
| 191 | tests.map((test) => { |
| 192 | return database |
| 193 | .query(test.q) |
| 194 | .then((data) => { |
| 195 | assertEqualRows(test, data); |
| 196 | }) |
| 197 | .catch((err) => { |
| 198 | console.error(err); |
| 199 | process.exit(1); |
| 200 | }); |
| 201 | }) |
| 202 | ); |
| 203 | |
| 204 | database.close(); |
| 205 | process.exit(0); |
| 206 | } |
| 207 | |
| 208 | main(); |
no test coverage detected