1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00
budibase/packages/server/__mocks__/pg.js
Martin McKeaveney 813ea1ede8 couchDB tests
2021-03-15 16:26:46 +00:00

20 lines
236 B
JavaScript

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