mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This reverts commit 2e8cd1c021.
This commit is contained in:
@@ -100,7 +100,7 @@ describe('getValidIntervals', () => {
|
||||
getTimeSrv: () =>
|
||||
({
|
||||
getValidIntervals: (intervals: string[]) => intervals,
|
||||
}) as unknown as TimeSrv,
|
||||
} as unknown as TimeSrv),
|
||||
};
|
||||
|
||||
const result = getValidIntervals(emptyIntervals, dependencies);
|
||||
@@ -116,7 +116,7 @@ describe('getValidIntervals', () => {
|
||||
getTimeSrv: () =>
|
||||
({
|
||||
getValidIntervals: (intervals: string[]) => intervals,
|
||||
}) as unknown as TimeSrv,
|
||||
} as unknown as TimeSrv),
|
||||
};
|
||||
|
||||
const result = getValidIntervals(duplicateIntervals, dependencies);
|
||||
@@ -132,7 +132,7 @@ describe('getValidIntervals', () => {
|
||||
getTimeSrv: () =>
|
||||
({
|
||||
getValidIntervals: (intervals: string[]) => intervals,
|
||||
}) as unknown as TimeSrv,
|
||||
} as unknown as TimeSrv),
|
||||
};
|
||||
|
||||
const result = getValidIntervals(duplicateIntervals, dependencies);
|
||||
@@ -149,7 +149,7 @@ describe('validateIntervals', () => {
|
||||
getTimeSrv: () =>
|
||||
({
|
||||
getValidIntervals: (intervals: string[]) => intervals,
|
||||
}) as unknown as TimeSrv,
|
||||
} as unknown as TimeSrv),
|
||||
};
|
||||
|
||||
const result = validateIntervals(defaultIntervals, dependencies);
|
||||
@@ -166,7 +166,7 @@ describe('validateIntervals', () => {
|
||||
getValidIntervals: () => {
|
||||
throw new Error('Some error');
|
||||
},
|
||||
}) as unknown as TimeSrv,
|
||||
} as unknown as TimeSrv),
|
||||
};
|
||||
|
||||
const result = validateIntervals(defaultIntervals, dependencies);
|
||||
|
||||
Reference in New Issue
Block a user