Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NFriedo committed Dec 17, 2024
1 parent 7dfc2db commit ddc0d33
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/modules/ui/confirmation-dialog/ConfirmationDialog.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ describe("ConfirmationDialog", () => {

expect(dialogTitle.text()).toContain(message);
});

it("should render empty dialog title if no message is provided", async () => {
const { wrapper } = setup({ message: undefined });

const dialogTitle = wrapper
.findComponent(VDialog)
.findComponent(VCard)
.find(".dialog-title");

expect(dialogTitle.text()).toBe("");
});
});

describe("when a dialog button is clicked", () => {
Expand Down

0 comments on commit ddc0d33

Please sign in to comment.