fix tests (add kbn mock)
This commit is contained in:
@@ -42,6 +42,12 @@ jest.mock('grafana/app/core/utils/datemath', () => {
|
|||||||
};
|
};
|
||||||
}, {virtual: true});
|
}, {virtual: true});
|
||||||
|
|
||||||
|
jest.mock('grafana/app/core/utils/kbn', () => {
|
||||||
|
return {
|
||||||
|
round_interval: n => n,
|
||||||
|
};
|
||||||
|
}, {virtual: true});
|
||||||
|
|
||||||
jest.mock('grafana/app/core/table_model', () => {
|
jest.mock('grafana/app/core/table_model', () => {
|
||||||
return class TableModel {
|
return class TableModel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user