mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
fix "dynamically remove first node after running it" test warning
This commit is contained in:
parent
bfeeea3ab2
commit
1735c4e28d
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user