We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19f2233 commit 8f15ee2Copy full SHA for 8f15ee2
tests/utils/filter.tests.ts
@@ -40,6 +40,13 @@ describe("entity filter", () => {
40
expect(filtered).to.have.deep.members(expected);
41
});
42
43
+ it("should place the default entity as first element in list", () => {
44
+ const filterObjects = [{ path: "/root/entity/b" }, { path: "/root/entity/c", isDefault: true }];
45
+ const filtered = filterEntityList({ filterObjects, entitiesOrPaths: entities });
46
+ const expectedPath ="/root/entity/c";
47
+ expect(filtered[0].path).to.be.equal(expectedPath);
48
+ });
49
+
50
it("should filter an entity list containing concatenated paths", () => {
51
const filterObjects = [{ path: "/root/entity/b" }, { path: "/root/entity/c" }];
52
const multiPathEntities = [
0 commit comments