Add active panel spec

pull/10616/head
Andrew Watkins 2017-02-06 11:54:22 -08:00
parent b1a6858c58
commit bd6157ddff
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});
});
});