Skip to content

Commit

Permalink
Merge pull request #16419 from dannon/fix-toolform-creator
Browse files Browse the repository at this point in the history
[23.1] Fix toolform creator
  • Loading branch information
mvdbeek authored Jul 21, 2023
2 parents 8c04ba9 + 0cb551e commit 31b20ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Tool/ToolCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function onUpdatePreferredObjectStoreId(selectedToolPreferredObjectStoreId) {
:has-citations="props.options.citations"
:xrefs="props.options.xrefs"
:license="props.options.license"
:creators="props.options.creators"
:creators="props.options.creator"
:requirements="props.options.requirements" />
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions client/src/components/Tool/ToolForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe("ToolForm", () => {
version: "version",
inputs: [],
help: "help_text",
creator: [{ class: "Person", givenName: "FakeName", familyName: "FakeSurname", email: "fakeEmail" }],
};
axiosMock.onGet(`/api/tools/tool_id/build?tool_version=version`).reply(200, toolData);
axiosMock.onGet(`/api/webhooks`).reply(200, []);
Expand Down Expand Up @@ -78,5 +79,7 @@ describe("ToolForm", () => {
expect(dropdown.length).toBe(2);
const help = wrapper.find(".form-help");
expect(help.text()).toBe("help_text");
const creator = wrapper.find(".creative-work-creator");
expect(creator.text()).toContain("FakeName FakeSurname");
});
});

0 comments on commit 31b20ac

Please sign in to comment.