Skip to content

Commit

Permalink
tests: don't disable all the sanitizers (#2472)
Browse files Browse the repository at this point in the history
The tests also pass with them enabled for me.

---------

Co-authored-by: Marvin Hagemeister <[email protected]>
  • Loading branch information
lucacasonato and marvinhagemeister authored May 27, 2024
1 parent bd60444 commit d06dad5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 128 deletions.
4 changes: 0 additions & 4 deletions src/dev/builder_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ Deno.test({

expect(logs).toEqual(["A", "B", "C"]);
},
sanitizeOps: false,
sanitizeResources: false,
});

Deno.test({
Expand All @@ -65,6 +63,4 @@ Deno.test({
);
expect(css).toContain('body { background: url("/foo.jpg?__frsh_c=');
},
sanitizeOps: false,
sanitizeResources: false,
});
2 changes: 0 additions & 2 deletions tests/active_links_test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,4 @@ Deno.test({
assertSelector(doc, `a[href='/'][aria-current="true"]`);
});
},
sanitizeResources: false,
sanitizeOps: false,
});
32 changes: 0 additions & 32 deletions tests/islands_test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ Deno.test({
await waitForText(page, ".output", "4");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -92,8 +90,6 @@ Deno.test({
await waitForText(page, "#multiple-2 .output", "1");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -123,8 +119,6 @@ Deno.test({
await waitForText(page, "#counter-2 .output", "1");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -153,8 +147,6 @@ Deno.test({
expect(json).toEqual({ foo: 123 });
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand All @@ -178,8 +170,6 @@ Deno.test({
await page.locator(".ready").wait();
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -210,8 +200,6 @@ Deno.test({
expect(html).not.toContain("import { Counter }");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -240,8 +228,6 @@ Deno.test({
expect(doc.querySelector(".children")!.childNodes.length).toEqual(0);
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -272,8 +258,6 @@ Deno.test({
expect(JSON.parse(text)).toEqual({ jsx: true, children: true });
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -309,8 +293,6 @@ Deno.test({
expect(childText).toEqual("foobar");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -343,8 +325,6 @@ Deno.test({
await waitForText(page, ".output", "1");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -388,8 +368,6 @@ Deno.test({
await waitForText(page, ".children .output", "1");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -433,8 +411,6 @@ Deno.test({
await waitForText(page, ".children .output", "1");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -509,8 +485,6 @@ Deno.test({
expect(radio2).toEqual(true);
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -541,8 +515,6 @@ Deno.test({
expect(text).toEqual("it works");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -572,8 +544,6 @@ Deno.test({
expect(text).toEqual("it works");
});
},
sanitizeResources: false,
sanitizeOps: false,
});

Deno.test({
Expand Down Expand Up @@ -602,6 +572,4 @@ Deno.test({
expect(text).toEqual("it works");
});
},
sanitizeResources: false,
sanitizeOps: false,
});
Loading

0 comments on commit d06dad5

Please sign in to comment.