delete adding node at start test

This commit is contained in:
cchang-vassar 2024-11-20 11:56:38 -05:00
parent 8e6eda2407
commit 8665717cfb

View File

@ -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();