Skip to content

Commit

Permalink
delete adding node at start test
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Nov 20, 2024
1 parent 8e6eda2 commit 8665717
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/jspsych/src/timeline/Timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,6 @@ describe("Timeline", () => {
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 () => {
TestPlugin.setManualFinishTrialMode();

Expand Down

0 comments on commit 8665717

Please sign in to comment.