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);
|
||||
onFinishCallback.mockReturnValue({
|
||||
extension_type: "test",
|
||||
extension_version: "1.0",
|
||||
extension: "result",
|
||||
});
|
||||
|
||||
@ -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",
|
||||
});
|
||||
});
|
||||
|
@ -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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user