@@ -9,10 +9,13 @@ describe("sandbox preview document", () => {
|
||||
42,
|
||||
1.2,
|
||||
{ wght: 550 },
|
||||
{ features: '"liga" 1', language: "ar", direction: "rtl" },
|
||||
);
|
||||
expect(html).toContain("<script>");
|
||||
expect(html).not.toContain('<script>alert("x")</script>');
|
||||
expect(html).toContain("default-src 'none'");
|
||||
expect(html).toContain(""wght" 550");
|
||||
expect(html).toContain('"wght" 550');
|
||||
expect(html).toContain('font-feature-settings:"liga" 1');
|
||||
expect(html).toContain('lang="ar" dir="rtl"');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user