mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Updated tests
This commit is contained in:
parent
078357306c
commit
e94691cf6b
@ -102,8 +102,6 @@ describe("ExtensionManager", () => {
|
|||||||
|
|
||||||
const onFinishCallback = jest.mocked(manager.extensions.test.on_finish);
|
const onFinishCallback = jest.mocked(manager.extensions.test.on_finish);
|
||||||
onFinishCallback.mockReturnValue({
|
onFinishCallback.mockReturnValue({
|
||||||
extension_type: "test",
|
|
||||||
extension_version: "1.0",
|
|
||||||
extension: "result",
|
extension: "result",
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -115,7 +113,7 @@ describe("ExtensionManager", () => {
|
|||||||
expect(onFinishCallback).toHaveBeenCalledWith({ my: "option" });
|
expect(onFinishCallback).toHaveBeenCalledWith({ my: "option" });
|
||||||
expect(results).toEqual({
|
expect(results).toEqual({
|
||||||
extension_type: ["test"],
|
extension_type: ["test"],
|
||||||
extension_version: ["1.0"],
|
extension_version: ["0.0.1"],
|
||||||
extension: "result",
|
extension: "result",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -3,6 +3,8 @@ import { JsPsych, JsPsychExtension } from "../../src";
|
|||||||
export class TestExtension implements JsPsychExtension {
|
export class TestExtension implements JsPsychExtension {
|
||||||
static info = {
|
static info = {
|
||||||
name: "test",
|
name: "test",
|
||||||
|
version: "0.0.1",
|
||||||
|
data: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private jsPsych: JsPsych) {}
|
constructor(private jsPsych: JsPsych) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user