budibase/packages/server/__mocks__/pg.js

22 lines
273 B
JavaScript

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