Skip to content

Commit

Permalink
tests: add missing card set title test (anuraghazra#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored and setdebarr committed Jan 12, 2024
1 parent c604a6d commit 0312251
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 0312251

Please sign in to comment.