add failing test to verify issue

This commit is contained in:
Joe Fleming 2015-05-21 15:41:59 -07:00
parent 3c28b3d870
commit 240cbb81b4

View file

@ -113,6 +113,16 @@ define(function (require) {
expect(filter.meta.negate).to.be(false);
});
});
it('should work without global state filters', function () {
// remove global filters
delete globalState.filters;
queryFilter.invertAll();
_.each(appState.filters, function (filter) {
expect(filter.meta.negate).to.be(true);
});
});
});
}];
});