aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/components/EditNoteTypeModal.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/components/EditNoteTypeModal.test.tsx')
-rw-r--r--src/client/components/EditNoteTypeModal.test.tsx27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/client/components/EditNoteTypeModal.test.tsx b/src/client/components/EditNoteTypeModal.test.tsx
index c8064bd..61130e2 100644
--- a/src/client/components/EditNoteTypeModal.test.tsx
+++ b/src/client/components/EditNoteTypeModal.test.tsx
@@ -185,22 +185,19 @@ describe("EditNoteTypeModal", () => {
await user.click(screen.getByRole("button", { name: "Save Changes" }));
await waitFor(() => {
- expect(mockFetch).toHaveBeenCalledWith(
- "/api/note-types/note-type-123",
- {
- method: "PUT",
- headers: {
- "Content-Type": "application/json",
- Authorization: "Bearer access-token",
- },
- body: JSON.stringify({
- name: "Updated Basic",
- frontTemplate: "{{Front}}",
- backTemplate: "{{Back}}",
- isReversible: true,
- }),
+ expect(mockFetch).toHaveBeenCalledWith("/api/note-types/note-type-123", {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/json",
+ Authorization: "Bearer access-token",
},
- );
+ body: JSON.stringify({
+ name: "Updated Basic",
+ frontTemplate: "{{Front}}",
+ backTemplate: "{{Back}}",
+ isReversible: true,
+ }),
+ });
});
expect(onNoteTypeUpdated).toHaveBeenCalledTimes(1);