diff options
author | 2023-05-17 13:29:18 +0000 | |
---|---|---|
committer | 2023-05-17 13:29:18 +0000 | |
commit | dd8dd6b31e13502ee140a4706dcd85d92b69c563 (patch) | |
tree | c49a49fced01baa71a7d9efd5437a9bac199fe73 | |
parent | 763ff2d1e44f54b899d7c65386f1b4b877c95737 (diff) | |
download | astro-dd8dd6b31e13502ee140a4706dcd85d92b69c563.tar.gz astro-dd8dd6b31e13502ee140a4706dcd85d92b69c563.tar.zst astro-dd8dd6b31e13502ee140a4706dcd85d92b69c563.zip |
[ci] format
-rw-r--r-- | packages/astro/src/@types/astro.ts | 1 | ||||
-rw-r--r-- | packages/astro/src/core/config/schema.ts | 5 | ||||
-rw-r--r-- | packages/astro/test/minification-html.test.js | 6 |
3 files changed, 4 insertions, 8 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 2441238aa..7f2974cc0 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -466,7 +466,6 @@ export interface AstroUserConfig { */ site?: string; - /** * @docs * @name compressHTML diff --git a/packages/astro/src/core/config/schema.ts b/packages/astro/src/core/config/schema.ts index 2948b2fd9..368348f50 100644 --- a/packages/astro/src/core/config/schema.ts +++ b/packages/astro/src/core/config/schema.ts @@ -227,10 +227,7 @@ export function createRelativeSchema(cmd: string, fileProtocolRoot: URL) { .string() .default(ASTRO_CONFIG_DEFAULTS.srcDir) .transform((val) => new URL(appendForwardSlash(val), fileProtocolRoot)), - compressHTML: z - .boolean() - .optional() - .default(ASTRO_CONFIG_DEFAULTS.compressHTML), + compressHTML: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.compressHTML), publicDir: z .string() .default(ASTRO_CONFIG_DEFAULTS.publicDir) diff --git a/packages/astro/test/minification-html.test.js b/packages/astro/test/minification-html.test.js index d53ab5003..818d9a76d 100644 --- a/packages/astro/test/minification-html.test.js +++ b/packages/astro/test/minification-html.test.js @@ -17,8 +17,8 @@ function removeDoctypeLine(html) { * In the dev environment, two more script tags will be injected than in the production environment * so that we can check if the rest of the HTML is without whitespace */ -function removeDoctypeLineInDev(html){ - return html.slice(-100) +function removeDoctypeLineInDev(html) { + return html.slice(-100); } describe('HTML minification', () => { @@ -63,7 +63,7 @@ describe('HTML minification', () => { fixture = await loadFixture({ root: './fixtures/minification-html/', output: 'server', - adapter: testAdapter() + adapter: testAdapter(), }); await fixture.build(); }); |