Skip to content

Commit 8721146

Browse files
committed
Fix typo
1 parent a18160a commit 8721146

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/sanitize.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ div.last[onclick="console.log('foo')"] {
1414

1515
test('Sanitization Off', async ({ page }) => {
1616
await page.goto('http://localhost:5173/');
17-
const body = await page.evaluate(async (css1) => { document.body = await cssToHtml(css1, { imports: 'include', sanitize: 'off' }); return document.body.outerHTML; }, css);
17+
const body = await page.evaluate(async (css) => { document.body = await cssToHtml(css, { imports: 'include', sanitize: 'off' }); return document.body.outerHTML; }, css);
1818

1919
// The body should have exactly two direct children.
2020
const bodyDirectChildren = page.locator('body > *');
@@ -53,7 +53,7 @@ test('Sanitization Off', async ({ page }) => {
5353

5454
test('Sanitize Imports Only', async ({ page }) => {
5555
await page.goto('http://localhost:5173/');
56-
const body = await page.evaluate(async (css1) => { document.body = await cssToHtml(css1, { imports: 'include', sanitize: 'imports' }); return document.body.outerHTML; }, css);
56+
const body = await page.evaluate(async (css) => { document.body = await cssToHtml(css, { imports: 'include', sanitize: 'imports' }); return document.body.outerHTML; }, css);
5757

5858
// The body should have exactly two direct children.
5959
const bodyDirectChildren = page.locator('body > *');
@@ -128,14 +128,14 @@ async function expectEverythingToBeSanitized (page: Page): Promise<void> {
128128

129129
test('Sanitize Everything', async ({ page }) => {
130130
await page.goto('http://localhost:5173/');
131-
const body = await page.evaluate(async (css1) => { document.body = await cssToHtml(css1, { imports: 'include', sanitize: 'all' }); return document.body.outerHTML; }, css);
131+
const body = await page.evaluate(async (css) => { document.body = await cssToHtml(css, { imports: 'include', sanitize: 'all' }); return document.body.outerHTML; }, css);
132132

133133
await expectEverythingToBeSanitized(page);
134134
});
135135

136136
test('Sanitize Everything By Default', async ({ page }) => {
137137
await page.goto('http://localhost:5173/');
138-
const body = await page.evaluate(async (css1) => { document.body = await cssToHtml(css1, { imports: 'include' }); return document.body.outerHTML; }, css);
138+
const body = await page.evaluate(async (css) => { document.body = await cssToHtml(css, { imports: 'include' }); return document.body.outerHTML; }, css);
139139

140140
await expectEverythingToBeSanitized(page);
141141
});

0 commit comments

Comments
 (0)