Skip to content

Commit

Permalink
sp-buttonに無効なicon属性を設定したときの仕様が定まっていないため、一旦そのテストケースを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
oki07 committed Oct 21, 2024
1 parent 57e8f82 commit c5519e8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/button/sp-button.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,5 @@ describe("ub-button", () => {
expect(isElementMatchingIcon(icon, "search")).toBeTruthy();
});

it("無効なicon属性を設定すると、アイコンは表示されない", async () => {
document.body.innerHTML = "<sp-button icon='invalid'></sp-button>";

const icon = queryIcon();

expect(icon).toBeNull();
});
// TODO: 無効なicon属性を設定したときの仕様が定まっていないため、決まったらテストを追加する
});

0 comments on commit c5519e8

Please sign in to comment.