Commit e1af933d by Alexander Zobnin Committed by GitHub

Chore: fix moment import in alerting tests (#22567)

* Chore: disable no-restricted-imports rule for moment

fix enterprise build

* Chore: get rid of moment, use dateTime in alerting tetst
parent 766d8a58
import moment from 'moment';
import { dateTime } from '@grafana/data';
import { alertRulesReducer, initialState, loadAlertRules, loadedAlertRules, setSearchQuery } from './reducers';
import { AlertRuleDTO, AlertRulesState } from 'app/types';
import { reducerTester } from '../../../../test/core/redux/reducerTester';
describe('Alert rules', () => {
const newStateDate = moment()
const newStateDate = dateTime()
.subtract(1, 'y')
.format('YYYY-MM-DD');
const payload: AlertRuleDTO[] = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment