1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 17:59:25 +00:00

Added DatabaseConnectionPool.close()

This commit is contained in:
2022-01-20 17:57:37 +00:00
parent ec3890fa7f
commit 5cc2b29257
2 changed files with 13 additions and 1 deletions

View File

@@ -21,9 +21,14 @@ const mockRunQuery = jest.fn((sql, params) => {
};
});
const mockClose = jest.fn();
jest.mock('./DatabaseConnectionPool', () => {
return jest.fn().mockImplementation(() => {
return { runQuery: mockRunQuery };
return {
runQuery: mockRunQuery,
close: mockClose
};
});
});