Prettify the frontend code (#8648)

* Add Prettier global configs

* Format js/jsx/ts/tsx/less files
This commit is contained in:
Erik Ritter
2019-11-27 14:02:48 -08:00
committed by GitHub
parent e21f768a92
commit 44d919c757
398 changed files with 8700 additions and 6117 deletions

View File

@@ -19,7 +19,6 @@
import chartReducer, { chart } from '../../../src/chart/chartReducer';
import * as actions from '../../../src/chart/chartAction';
describe('chart reducers', () => {
const chartKey = 1;
let testChart;
@@ -39,7 +38,10 @@ describe('chart reducers', () => {
});
it('should update endtime on timeout', () => {
const newState = chartReducer(charts, actions.chartUpdateTimeout('timeout', 60, chartKey));
const newState = chartReducer(
charts,
actions.chartUpdateTimeout('timeout', 60, chartKey),
);
expect(newState[chartKey].chartUpdateEndTime).toBeGreaterThan(0);
expect(newState[chartKey].chartStatus).toEqual('failed');
});