chore: add support for contains clauses in filter store

This commit is contained in:
Randall Morey committed 2021-12-16 16:02:00 -05:00
1 parent a79823d3b1
commit 2c998bbb2b
2 files changed
+22 -4

No files matched your search

@@ -10,9 +10,10 @@ module('Unit | Service | resource-filter-store', function (hooks) {
const filter = new ResourceFilter({
type: 'oidc',
status: ['active', 'pending'],
authorized_actions: [{ contains: 'read' }],
});
const expected =
'("/item/type" == "oidc") and ("/item/status" == "active" or "/item/status" == "pending")';
'("/item/type" == "oidc") and ("/item/status" == "active" or "/item/status" == "pending") and ("read" in "/item/authorized_actions")';
assert.equal(filter.queryExpression, expected);
});
});