mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
delete adding node at start test
This commit is contained in:
parent
8e6eda2407
commit
8665717cfb
@ -75,23 +75,6 @@ describe("Timeline", () => {
|
|||||||
expect(timeline.children.length).toEqual(2);
|
expect(timeline.children.length).toEqual(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("respects dynamically added child node descriptions at the start", async () => {
|
|
||||||
TestPlugin.setManualFinishTrialMode();
|
|
||||||
|
|
||||||
const timelineDescription: TimelineArray = [{ type: TestPlugin }];
|
|
||||||
const timeline = createTimeline(timelineDescription);
|
|
||||||
|
|
||||||
const runPromise = timeline.run();
|
|
||||||
expect(timeline.children.length).toEqual(1);
|
|
||||||
|
|
||||||
timelineDescription.splice(0, 0, { timeline: [{ type: TestPlugin }] });
|
|
||||||
await TestPlugin.finishTrial();
|
|
||||||
await TestPlugin.finishTrial();
|
|
||||||
await runPromise;
|
|
||||||
|
|
||||||
expect(timeline.children.length).toEqual(2);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("dynamically added child node descriptions before a node after it has been run", async () => {
|
it("dynamically added child node descriptions before a node after it has been run", async () => {
|
||||||
TestPlugin.setManualFinishTrialMode();
|
TestPlugin.setManualFinishTrialMode();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user