fix tests

This commit is contained in:
Alexander Zobnin
2021-01-28 12:33:35 +03:00
parent 8779c076ae
commit 152821e47d

View File

@@ -94,6 +94,13 @@ jest.mock('grafana/app/core/config', () => {
jest.mock('jquery', () => 'module not found', {virtual: true}); jest.mock('jquery', () => 'module not found', {virtual: true});
jest.mock('grafana/app/core/utils/kbn', () => {
return {
round_interval: n => n,
secondsToHms: n => n + 'ms'
};
}, {virtual: true});
// jest.mock('@grafana/ui', () => { // jest.mock('@grafana/ui', () => {
// return {}; // return {};
// }, {virtual: true}); // }, {virtual: true});