test: remove redundant messageAction default-text case
This commit is contained in:
parent
242e8f5c43
commit
8fd6d4d6dd
@ -12,12 +12,6 @@ import {
|
||||
} from "./template-messages.js";
|
||||
|
||||
describe("messageAction", () => {
|
||||
it("uses label as text when text not provided", () => {
|
||||
const action = messageAction("Click");
|
||||
|
||||
expect((action as { text: string }).text).toBe("Click");
|
||||
});
|
||||
|
||||
it("truncates label to 20 characters", () => {
|
||||
const action = messageAction("This is a very long label that exceeds the limit");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user