fix "dynamically remove first node after running it" test warning

This commit is contained in:
Cherrie Chang 2024-11-05 12:10:40 -05:00
parent bfeeea3ab2
commit 1735c4e28d

View File

@ -139,7 +139,8 @@ describe("Timeline", () => {
expect(timeline.children.length).toEqual(3); expect(timeline.children.length).toEqual(3);
expect(timeline.children[0].getDataParameter().I).toEqual(0); expect(timeline.children[0].getDataParameter().I).toEqual(0);
expect(timeline.children[1].description.timeline[0]).toHaveProperty("data.I", 1); const secondChildDescription = timeline.children[1].description as TimelineDescription;
expect(secondChildDescription["timeline"][0]).toHaveProperty("data.I", 1);
expect(timeline.children[2].getDataParameter().I).toEqual(3); expect(timeline.children[2].getDataParameter().I).toEqual(3);
}); });