Skip to content

Commit 2e5e013

Browse files
committed
test(studio): the Button vacuity guard names tokens that stay undefined
1 parent e1b33ce commit 2e5e013

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎packages/studio/src/components/ui/Button.test.tsx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ describe("Button classes", () => {
7979
});
8080

8181
it("fails an undefined class, so the check above is not vacuous", () => {
82-
expect(unresolved(["rounded-button", "shadow-btn-primary"])).toEqual([
83-
"rounded-button",
84-
"shadow-btn-primary",
82+
// Names in a real namespace with no token behind them; the theme file now defines the
83+
// `rounded-button` pair this used to name.
84+
expect(unresolved(["bg-not-a-token", "text-step-999"])).toEqual([
85+
"bg-not-a-token",
86+
"text-step-999",
8587
]);
8688
});
8789

0 commit comments

Comments
 (0)