mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
[WiP] rename project from Caravel to Superset (#1576)
* Change in files * Renamin files and folders * cleaning up a single piece of lint * Removing boat picture from docs * add superset word mark * Update rename note in docs * Fixing images * Pinning datatables * Fixing issues with mapbox-gl * Forgot to rename one file * Linting * v0.13.0 * adding pyyaml to dev-reqs
This commit is contained in:
committed by
GitHub
parent
973537fd9a
commit
15b67b2c6c
16
superset/assets/spec/javascripts/explorev2/actions_spec.js
Normal file
16
superset/assets/spec/javascripts/explorev2/actions_spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import * as actions from '../../../javascripts/explorev2/actions/exploreActions';
|
||||
import { initialState } from '../../../javascripts/explorev2/stores/store';
|
||||
import { exploreReducer } from '../../../javascripts/explorev2/reducers/exploreReducer';
|
||||
|
||||
describe('reducers', () => {
|
||||
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('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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user