Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bankminer78 committed Jul 18, 2024
1 parent 0783573 commit e94691c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/jspsych/src/ExtensionManager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ describe("ExtensionManager", () => {

const onFinishCallback = jest.mocked(manager.extensions.test.on_finish);
onFinishCallback.mockReturnValue({
extension_type: "test",
extension_version: "1.0",
extension: "result",
});

Expand All @@ -115,7 +113,7 @@ describe("ExtensionManager", () => {
expect(onFinishCallback).toHaveBeenCalledWith({ my: "option" });
expect(results).toEqual({
extension_type: ["test"],
extension_version: ["1.0"],
extension_version: ["0.0.1"],
extension: "result",
});
});
Expand Down
2 changes: 2 additions & 0 deletions packages/jspsych/tests/extensions/test-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { JsPsych, JsPsychExtension } from "../../src";
export class TestExtension implements JsPsychExtension {
static info = {
name: "test",
version: "0.0.1",
data: {},
};

constructor(private jsPsych: JsPsych) {}
Expand Down

0 comments on commit e94691c

Please sign in to comment.