mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
import { startTimeline } from "@jspsych/test-utils";
|
|
|
|
import jsPsychPluginFreeSortOrdered from ".";
|
|
|
|
jest.useFakeTimers();
|
|
|
|
describe("my plugin", () => {
|
|
it("should load", async () => {
|
|
const { expectFinished, getHTML, getData, displayElement, jsPsych } = await startTimeline([
|
|
{
|
|
type: jsPsychPluginFreeSortOrdered,
|
|
parameter_name: 1,
|
|
parameter_name2: "img.png",
|
|
},
|
|
]);
|
|
|
|
await expectFinished();
|
|
});
|
|
});
|