mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prettier had not been running as a precommit hook for some time so had to run in on all files again
This commit is contained in:
@@ -39,7 +39,7 @@ describe('applyPanelTimeOverrides', () => {
|
||||
|
||||
it('should apply time shift', () => {
|
||||
const panelModel = {
|
||||
timeShift: '2h'
|
||||
timeShift: '2h',
|
||||
};
|
||||
|
||||
const expectedFromDate = moment([2019, 1, 11, 10, 0, 0]).toDate();
|
||||
@@ -57,7 +57,7 @@ describe('applyPanelTimeOverrides', () => {
|
||||
it('should apply both relative time and time shift', () => {
|
||||
const panelModel = {
|
||||
timeFrom: '2h',
|
||||
timeShift: '2h'
|
||||
timeShift: '2h',
|
||||
};
|
||||
|
||||
const expectedFromDate = moment([2019, 1, 11, 10, 0, 0]).toDate();
|
||||
|
||||
@@ -176,11 +176,11 @@ export const snapshotDataToPanelData = (panel: PanelModel): PanelData => {
|
||||
const snapshotData = panel.snapshotData;
|
||||
if (isTimeSeries(snapshotData[0])) {
|
||||
return {
|
||||
timeSeries: snapshotData
|
||||
timeSeries: snapshotData,
|
||||
} as PanelData;
|
||||
} else if (isTableData(snapshotData[0])) {
|
||||
return {
|
||||
tableData: snapshotData[0]
|
||||
tableData: snapshotData[0],
|
||||
} as PanelData;
|
||||
}
|
||||
throw new Error('snapshotData is invalid:' + snapshotData.toString());
|
||||
|
||||
Reference in New Issue
Block a user