Skip to content

Commit

Permalink
Complete the refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
surchs committed Oct 24, 2023
1 parent 578832c commit c606474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/component/category-toolgroup.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe("Tool Group component", () => {
cy.get("[data-cy='toolgroup-select']").should("contain", "MOCA");
});

it("selecting a tool group fires a createTool mutation", () => {
it("selecting a tool group fires a createAssessmentTool mutation", () => {
cy.spy(store, "commit").as("commitSpy");
cy.mount(categoryToolGroup, {
mocks: { $store: store },
Expand All @@ -114,7 +114,7 @@ describe("Tool Group component", () => {
});

cy.get("[data-cy='toolgroup-select']").type("MOCA{enter}");
cy.get("@commitSpy").should("have.been.calledWith", "createToolGroup", { identifier: 'cogatlas:MOCA', label: 'MOCA' });
cy.get("@commitSpy").should("have.been.calledWith", "createAssessmentTool", { identifier: 'cogatlas:MOCA', label: 'MOCA' });

});

Expand Down

0 comments on commit c606474

Please sign in to comment.