Skip to content

Commit

Permalink
Fix jest collection modal test to be more flexible, allowing title co…
Browse files Browse the repository at this point in the history
…ntent variability
  • Loading branch information
dannon committed Nov 19, 2024
1 parent faf12b6 commit c9598d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Collections/common/modal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("modal.js", () => {
it("should create showEl and resolve oncreate", async () => {
expect(showOptions).toBe(null);
showEl();
expect(showOptions.title).toEqual("Create a collection");
expect(showOptions.title).toContain("Create a collection");

expect(hidden).toBeFalsy();
options.oncreate(null, "testres");
Expand Down

0 comments on commit c9598d2

Please sign in to comment.