Skip to content

Commit

Permalink
Updating old tests to use new plugin syntax and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhang03 committed Jun 21, 2024
1 parent 65ba0d9 commit 593d4ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jspsych/tests/core/functions-as-parameters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ describe("nested parameters as functions", () => {

const info = <const>{
name: "function-test-plugin",
version: "0.0.1",
parameters: {
foo: {
type: ParameterType.COMPLEX,
Expand All @@ -157,6 +158,7 @@ describe("nested parameters as functions", () => {
},
},
},
data: {},
};

class FunctionTestPlugin implements JsPsychPlugin<typeof info> {
Expand Down
2 changes: 2 additions & 0 deletions packages/jspsych/tests/core/simulation-mode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,14 @@ describe("data simulation mode", () => {
class FakePlugin {
static info = {
name: "fake-plugin",
version: "0.0.1",
parameters: {
foo: {
type: ParameterType.BOOL,
default: true,
},
},
data: {},
};

constructor(private jsPsych: JsPsych) {}
Expand Down
2 changes: 2 additions & 0 deletions packages/jspsych/tests/core/test-complex-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

const info = <const>{
name: "test-complex-plugin",
version: "0.0.1",
parameters: {
blocks: {
type: ParameterType.COMPLEX,
Expand All @@ -23,6 +24,7 @@ const info = <const>{
},
},
},
data: {},
};

type Info = typeof info;
Expand Down

0 comments on commit 593d4ce

Please sign in to comment.