Skip to content

Commit

Permalink
tests: add missing card set title test (#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Sep 4, 2023
1 parent 13af3ba commit 7a6ed4d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/card.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ describe("Card", () => {
);
});

it("should set custom title", () => {
const card = new Card({});
card.setTitle("custom title");

document.body.innerHTML = card.render(``);
expect(queryByTestId(document.body, "card-title")).toHaveTextContent(
"custom title",
);
});

it("should hide title", () => {
const card = new Card({});
card.setHideTitle(true);
Expand Down

0 comments on commit 7a6ed4d

Please sign in to comment.