1
0
Fork 0
mirror of synced 2024-08-21 04:51:42 +12:00
budibase/packages/server/__mocks__/pg.js

22 lines
273 B
JavaScript
Raw Normal View History

const pg = {}
// constructor
function Client() {}
Client.prototype.query = async function() {
return {
rows: [
{
a: "string",
b: 1,
},
],
}
}
Client.prototype.connect = async function() {}
pg.Client = Client
module.exports = pg