refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -24,7 +24,7 @@ describe("image package kit", () => {
|
||||
test("requires HTTPS CDN endpoints and safe placeholder colors", () => {
|
||||
expect(() => createCdnImageLoader("http://images.example.test")).toThrow();
|
||||
expect(() => createBlurPlaceholder({ color: 'url("javascript:alert(1)")' })).toThrow();
|
||||
expect(createBlurPlaceholder({ color: "#fff", accent: "var(--wire-color-surface)" })).toMatch(
|
||||
expect(createBlurPlaceholder({ color: "#fff", accent: "var(--wrn-color-surface)" })).toMatch(
|
||||
/^data:image\/svg\+xml/,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user