diff options
author | 2023-08-18 12:22:06 +0530 | |
---|---|---|
committer | 2023-08-18 07:52:06 +0100 | |
commit | 8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59 (patch) | |
tree | 3db98f0de0742ff5edf02b3b8f40e89375c3a561 /packages/integrations/deno/test/basics.test.ts | |
parent | 2540feedb06785d5a20eecc3668849f147d778d4 (diff) | |
download | astro-8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59.tar.gz astro-8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59.tar.zst astro-8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59.zip |
Switch `build.inlineStylesheets` default to auto (#8118)
* switch inlineStylesheets default
* use previous default for astro/test
* use previous default for content-collections-render.test.js
* integrations: node, deno, mdx, markdown
* typedocs: switch inlineStylesheets default
* Update example to show non-default
* add changeset
* reword changeset
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/deno/test/basics.test.ts')
-rw-r--r-- | packages/integrations/deno/test/basics.test.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/integrations/deno/test/basics.test.ts b/packages/integrations/deno/test/basics.test.ts index cdb0c616e..30bca0eb3 100644 --- a/packages/integrations/deno/test/basics.test.ts +++ b/packages/integrations/deno/test/basics.test.ts @@ -48,14 +48,11 @@ Deno.test({ const html = await resp.text(); const doc = new DOMParser().parseFromString(html, `text/html`); - const link = doc!.querySelector('link'); - const href = link!.getAttribute('href'); + const style = doc!.querySelector('style'); - resp = await fetch(new URL(href!, app.url)); - assertEquals(resp.status, 200); - const ct = resp.headers.get('content-type'); - assertEquals(ct, 'text/css; charset=UTF-8'); - await resp.body!.cancel(); + assertEquals(style?.getAttribute('type'), 'text/css'); + + assert(style?.textContent?.includes('Courier New')) }); await t.step('Correctly loads run-time env variables', async () => { |