fix problems panel tests

This commit is contained in:
Alexander Zobnin
2019-01-17 09:25:21 +03:00
parent ba2c6aff99
commit d7db242426
9 changed files with 93 additions and 14 deletions

View File

@@ -11,6 +11,10 @@ export let datasourceSrvMock = {
getAll: jest.fn()
};
export let timeSrvMock = {
timeRange: jest.fn().mockReturnValue({ from: '', to: '' })
}
export let zabbixAlertingSrvMock = {
setPanelAlertState: jest.fn(),
removeZabbixThreshold: jest.fn(),
@@ -20,6 +24,7 @@ const defaultExports = {
templateSrvMock,
backendSrvMock,
datasourceSrvMock,
timeSrvMock,
zabbixAlertingSrvMock
};