Chore: Dependency clean up

This commit is contained in:
Zoltán Bedi
2023-09-24 22:59:27 +02:00
parent fe55c450bd
commit fdca810285
33 changed files with 4052 additions and 14822 deletions

View File

@@ -25,8 +25,10 @@ jest.mock('../components/AnnotationQueryEditor', () => ({
describe('ZabbixDatasource', () => {
let ctx: any = {};
let consoleSpy: jest.SpyInstance;
beforeEach(() => {
consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {});
ctx.instanceSettings = {
jsonData: {
alerting: false,
@@ -60,6 +62,10 @@ describe('ZabbixDatasource', () => {
ctx.ds.templateSrv = templateSrvMock;
});
afterEach(() => {
consoleSpy.mockRestore();
});
describe('When querying text data', () => {
beforeEach(() => {
ctx.ds.replaceTemplateVars = (str) => str;