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:
Torkel Ödegaard
2019-02-13 11:14:53 +01:00
parent 3b0ae4bd0a
commit cfea8bdcae
132 changed files with 1991 additions and 1690 deletions

View File

@@ -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();

View File

@@ -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());