1
0
Fork 0
mirror of synced 2024-07-05 14:31:17 +12:00
budibase/packages/server/__mocks__/mssql.js

23 lines
349 B
JavaScript
Raw Normal View History

2021-03-17 02:54:39 +13:00
const mssql = {}
mssql.query = jest.fn(() => ({
recordset: [
{
a: "string",
b: 1,
},
],
}))
2021-05-24 23:14:04 +12:00
// mssql.connect = jest.fn(() => ({ recordset: [] }))
mssql.ConnectionPool = jest.fn(() => ({
connect: jest.fn(() => ({
request: jest.fn(() => ({
query: jest.fn(() => ({})),
})),
})),
}))
2021-03-17 02:54:39 +13:00
module.exports = mssql