From 152821e47d99c4eb043e534969da31620833d6f1 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 28 Jan 2021 12:33:35 +0300 Subject: [PATCH] fix tests --- src/test-setup/jest-setup.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test-setup/jest-setup.js b/src/test-setup/jest-setup.js index d8ef607..303f58c 100644 --- a/src/test-setup/jest-setup.js +++ b/src/test-setup/jest-setup.js @@ -94,6 +94,13 @@ jest.mock('grafana/app/core/config', () => { 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', () => { // return {}; // }, {virtual: true});