Fixed api tests.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
This commit is contained in:
parent
3e47cb131b
commit
a2d62ddec1
@ -8,15 +8,17 @@ jest.unstable_mockModule('../utils.js', () => ({
|
|||||||
// Mock src/utils.js (where most database.js helpers live)
|
// Mock src/utils.js (where most database.js helpers live)
|
||||||
jest.unstable_mockModule('../../utils.js', () => ({
|
jest.unstable_mockModule('../../utils.js', () => ({
|
||||||
deleteAuditLog: jest.fn(),
|
deleteAuditLog: jest.fn(),
|
||||||
|
deleteNotification: jest.fn(),
|
||||||
distributeDelete: jest.fn(),
|
distributeDelete: jest.fn(),
|
||||||
|
editAuditLog: jest.fn(),
|
||||||
|
editNotification: jest.fn(),
|
||||||
expandObjectIds: jest.fn((obj) => obj),
|
expandObjectIds: jest.fn((obj) => obj),
|
||||||
modelHasRef: jest.fn(() => false),
|
|
||||||
getFieldsByRef: jest.fn(() => []),
|
getFieldsByRef: jest.fn(() => []),
|
||||||
getQueryToCacheKey: jest.fn(({ model, id }) => `${model}:${id}`),
|
getQueryToCacheKey: jest.fn(({ model, id }) => `${model}:${id}`),
|
||||||
editAuditLog: jest.fn(),
|
modelHasRef: jest.fn(() => false),
|
||||||
distributeUpdate: jest.fn(),
|
|
||||||
newAuditLog: jest.fn(),
|
newAuditLog: jest.fn(),
|
||||||
distributeNew: jest.fn(),
|
distributeNew: jest.fn(),
|
||||||
|
distributeUpdate: jest.fn(),
|
||||||
distributeChildUpdate: jest.fn(),
|
distributeChildUpdate: jest.fn(),
|
||||||
distributeChildDelete: jest.fn(),
|
distributeChildDelete: jest.fn(),
|
||||||
distributeChildNew: jest.fn(),
|
distributeChildNew: jest.fn(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user