Skip to content

Commit

Permalink
change end node removal test
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Nov 4, 2024
1 parent 9b55e9d commit 214fb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jspsych/src/timeline/Timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ describe("Timeline", () => {
TestPlugin.setManualFinishTrialMode();

const timelineDescription: TimelineArray = [
{ type: TestPlugin },
{ type: TestPlugin },
{ timeline: [{ type: TestPlugin }] },
{ type: TestPlugin },
];
const timeline = createTimeline(timelineDescription);

Expand All @@ -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 () => {
Expand Down

0 comments on commit 214fb77

Please sign in to comment.