mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
add tests for getting specific state filters
This commit is contained in:
parent
c79f2c12a8
commit
a2913d680c
1 changed files with 13 additions and 0 deletions
|
@ -73,6 +73,19 @@ define(function (require) {
|
|||
expect(res[0].$state.store).to.be(storeNames.global);
|
||||
expect(res[1].$state.store).to.be(storeNames.app);
|
||||
});
|
||||
|
||||
it('should return filters from specific states', function () {
|
||||
var states = [
|
||||
[ globalState, queryFilter.getGlobalFilters ],
|
||||
[ appState, queryFilter.getAppFilters ],
|
||||
];
|
||||
|
||||
_.each(states, function (state) {
|
||||
state[0].filters = filters;
|
||||
var res = state[1]();
|
||||
expect(res.length).to.be(state[0].filters.length);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('filter reconciliation', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue