Skip to content

Commit

Permalink
fix failing test because I forgot to implement it
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed Feb 2, 2024
1 parent 48fa3e6 commit 4594f5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/plugin-survey-number/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ describe("my plugin", () => {
const { expectFinished, getHTML, getData, displayElement, jsPsych } = await startTimeline([
{
type: jsPsychSurveyNumber,
parameter_name: 1,
parameter_name2: "img.png",
questions: [{ prompt: "How old are you?" }],
},
]);

expect(getHTML()).toMatch("How old are you?");

displayElement.querySelector("input").value = "25";

(displayElement.querySelector("#jspsych-survey-text-next") as HTMLInputElement).click();

await expectFinished();
});
});

0 comments on commit 4594f5c

Please sign in to comment.