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

@@ -24,12 +24,16 @@ import * as actions from '../../../src/explore/actions/exploreActions';
describe('reducers', () => {
it('sets correct control value given a key and value', () => {
const newState = exploreReducer(
defaultState, actions.setControlValue('x_axis_label', 'x', []));
defaultState,
actions.setControlValue('x_axis_label', 'x', []),
);
expect(newState.controls.x_axis_label.value).toBe('x');
});
it('setControlValue works as expected with a checkbox', () => {
const newState = exploreReducer(defaultState,
actions.setControlValue('show_legend', true, []));
const newState = exploreReducer(
defaultState,
actions.setControlValue('show_legend', true, []),
);
expect(newState.controls.show_legend.value).toBe(true);
});
});