Skip to content

Commit f4d6264

Browse files
chuganzylukasbach
authored andcommitted
Add a test case
1 parent 0f5d266 commit f4d6264

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/core/src/features/tree/tree.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,14 @@ describe("core-feature/selections", () => {
472472
});
473473
});
474474
});
475+
476+
describe("empty rootItemId", () => {
477+
factory.with({ rootItemId: "" }).forSuits((tree) => {
478+
describe("focused item", () => {
479+
it("returns correct initial focused item", () => {
480+
expect(tree.instance.getFocusedItem().getId()).toBe("1");
481+
});
482+
});
483+
});
484+
});
475485
});

0 commit comments

Comments
 (0)