Add active panel spec

pull/841/head
Andrew Watkins 2017-02-06 11:54:22 -08:00
parent 7ef4f9f916
commit 954a6506fc
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import reducer from 'src/data_explorer/reducers/dataExplorerUI';
import {activatePanel} from 'src/data_explorer/actions/view';
describe('Chronograf.Reducers.Panel', () => {
it('can set the active panel', () => {
const activePanel = 123;
const actual = reducer({}, activatePanel(activePanel));
expect(actual).to.deep.equal({activePanel});
});
});