diff --git a/packages/lookit-initjspsych/src/utils.spec.ts b/packages/lookit-initjspsych/src/utils.spec.ts index cc650ea8..9f77ac81 100644 --- a/packages/lookit-initjspsych/src/utils.spec.ts +++ b/packages/lookit-initjspsych/src/utils.spec.ts @@ -7,8 +7,8 @@ delete global.window.location; global.window = Object.create(window); global.window.location = { replace: jest.fn() }; -test("jsPsych's on_data_update", async () => { - const jsonData = { data: { attributes: { exp_data: [] } } }; +test("jsPsych's on_data_update with some exp_data", async () => { + const jsonData = { data: { attributes: { exp_data: ["some data"] } } }; const response = { /** * Mocked json function used in API calls. @@ -30,7 +30,7 @@ test("jsPsych's on_data_update", async () => { expect(Request).toHaveBeenCalledTimes(2); }); -test("jsPsych's on_data_update", async () => { +test("jsPsych's on_data_update with no exp_data", async () => { const jsonData = { data: { attributes: { exp_data: undefined } } }; const response = { /** diff --git a/packages/surveys/src/utils.spec.ts b/packages/surveys/src/utils.spec.ts index 410b5593..7e08189d 100644 --- a/packages/surveys/src/utils.spec.ts +++ b/packages/surveys/src/utils.spec.ts @@ -10,7 +10,7 @@ jest.mock("@lookit/data", () => ({ updateResponse: jest.fn().mockReturnValue("Response"), })); -test("", () => { +test("Markdown to HTML through survey function", () => { const addMock = jest.fn(); const survey = { onTextMarkdown: { add: addMock } } as unknown as Model; const textValue = "some text";