mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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
This commit is contained in:
parent
766d8a5888
commit
e1af933d4a
@ -1,10 +1,10 @@
|
||||
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[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user