Add harness workflow and Material showcase design system
This commit is contained in:
@@ -9,16 +9,16 @@ describe("skin contract", () => {
|
||||
});
|
||||
|
||||
it("sets the document root skin when no target element is provided", () => {
|
||||
setSkin("glass");
|
||||
setSkin("material");
|
||||
|
||||
expect(document.documentElement.dataset.skin).toBe("glass");
|
||||
expect(document.documentElement.dataset.skin).toBe("material");
|
||||
});
|
||||
|
||||
it("sets the provided target element instead of the document root", () => {
|
||||
const target = document.createElement("div");
|
||||
|
||||
setSkin("pixel", target);
|
||||
setSkin("material", target);
|
||||
|
||||
expect(target.dataset.skin).toBe("pixel");
|
||||
expect(target.dataset.skin).toBe("material");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user