mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
20 lines
577 B
TypeScript
20 lines
577 B
TypeScript
import { initialExploreState } from './main';
|
|
import { selectOrderedExplorePanes } from './selectors';
|
|
import { makeExplorePaneState } from './utils';
|
|
|
|
describe('getOrderedExplorePanes', () => {
|
|
it('returns a panes object with entries in the correct order', () => {
|
|
const selectorResult = selectOrderedExplorePanes({
|
|
explore: {
|
|
...initialExploreState,
|
|
panes: {
|
|
right: makeExplorePaneState(),
|
|
left: makeExplorePaneState(),
|
|
},
|
|
},
|
|
});
|
|
|
|
expect(Object.keys(selectorResult)).toEqual(['left', 'right']);
|
|
});
|
|
});
|