Skip to content

Commit

Permalink
Changed test statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Nov 8, 2016
1 parent 94db0af commit 1c56923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caravel/assets/spec/javascripts/explorev2/actions_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { initialState } from '../../../javascripts/explorev2/stores/store';
import { exploreReducer } from '../../../javascripts/explorev2/reducers/exploreReducer';

describe('reducers', () => {
it('set form data according to given value', () => {
it('sets correct field value given a key and value', () => {
const newState = exploreReducer(initialState, actions.setFieldValue('x_axis_label', 'x'));
expect(newState.viz.form_data.x_axis_label).to.equal('x');
});
it('flip value in state when action.key is not defined', () => {
it('toggles a boolean field value given only a key', () => {
const newState = exploreReducer(initialState, actions.setFieldValue('show_legend'));
expect(newState.viz.form_data.show_legend).to.equal(false);
});
Expand Down

0 comments on commit 1c56923

Please sign in to comment.