change end node removal test

This commit is contained in:
Cherrie Chang 2024-11-04 17:44:17 -05:00
parent 9b55e9dfcc
commit 214fb77247

View File

@ -79,9 +79,9 @@ describe("Timeline", () => {
TestPlugin.setManualFinishTrialMode();
const timelineDescription: TimelineArray = [
{ type: TestPlugin },
{ type: TestPlugin },
{ timeline: [{ type: TestPlugin }] },
{ type: TestPlugin },
];
const timeline = createTimeline(timelineDescription);
@ -94,7 +94,7 @@ describe("Timeline", () => {
await runPromise;
expect(timeline.children.length).toEqual(2);
expect(timeline.children).toEqual([expect.any(Trial), expect.any(Trial)]);
expect(timeline.children).toEqual([expect.any(Trial), expect.any(Timeline)]);
});
it("respects dynamically removed first child node descriptions", async () => {