Skip to content

Commit

Permalink
fix "dynamically remove first node after running it" test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Nov 5, 2024
1 parent bfeeea3 commit 1735c4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jspsych/src/timeline/Timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ describe("Timeline", () => {

expect(timeline.children.length).toEqual(3);
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);
});

Expand Down

0 comments on commit 1735c4e

Please sign in to comment.