2024-03-19 17:50:48 +01:00
|
|
|
module.exports = {
|
|
|
|
ConnectionPool: jest.fn(() => ({
|
|
|
|
connect: jest.fn(() => ({
|
|
|
|
request: jest.fn(() => ({
|
|
|
|
query: jest.fn(sql => ({ recordset: [sql] })),
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
query: jest.fn(() => ({
|
2021-06-25 14:46:02 +02:00
|
|
|
recordset: [
|
|
|
|
{
|
|
|
|
a: "string",
|
|
|
|
b: 1,
|
|
|
|
},
|
|
|
|
],
|
2024-03-19 17:50:48 +01:00
|
|
|
})),
|
2022-01-20 09:17:08 +01:00
|
|
|
}
|