mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
change end node removal test
This commit is contained in:
parent
9b55e9dfcc
commit
214fb77247
@ -79,9 +79,9 @@ describe("Timeline", () => {
|
|||||||
TestPlugin.setManualFinishTrialMode();
|
TestPlugin.setManualFinishTrialMode();
|
||||||
|
|
||||||
const timelineDescription: TimelineArray = [
|
const timelineDescription: TimelineArray = [
|
||||||
{ type: TestPlugin },
|
|
||||||
{ type: TestPlugin },
|
{ type: TestPlugin },
|
||||||
{ timeline: [{ type: TestPlugin }] },
|
{ timeline: [{ type: TestPlugin }] },
|
||||||
|
{ type: TestPlugin },
|
||||||
];
|
];
|
||||||
const timeline = createTimeline(timelineDescription);
|
const timeline = createTimeline(timelineDescription);
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ describe("Timeline", () => {
|
|||||||
await runPromise;
|
await runPromise;
|
||||||
|
|
||||||
expect(timeline.children.length).toEqual(2);
|
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 () => {
|
it("respects dynamically removed first child node descriptions", async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user