[ci] format

This commit is contained in:
matthewp 2023-05-17 13:29:18 +00:00 committed by fredkbot
parent 763ff2d1e4
commit dd8dd6b31e
3 changed files with 4 additions and 8 deletions

View file

@ -466,7 +466,6 @@ export interface AstroUserConfig {
*/ */
site?: string; site?: string;
/** /**
* @docs * @docs
* @name compressHTML * @name compressHTML

View file

@ -227,10 +227,7 @@ export function createRelativeSchema(cmd: string, fileProtocolRoot: URL) {
.string() .string()
.default(ASTRO_CONFIG_DEFAULTS.srcDir) .default(ASTRO_CONFIG_DEFAULTS.srcDir)
.transform((val) => new URL(appendForwardSlash(val), fileProtocolRoot)), .transform((val) => new URL(appendForwardSlash(val), fileProtocolRoot)),
compressHTML: z compressHTML: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.compressHTML),
.boolean()
.optional()
.default(ASTRO_CONFIG_DEFAULTS.compressHTML),
publicDir: z publicDir: z
.string() .string()
.default(ASTRO_CONFIG_DEFAULTS.publicDir) .default(ASTRO_CONFIG_DEFAULTS.publicDir)

View file

@ -17,8 +17,8 @@ function removeDoctypeLine(html) {
* In the dev environment, two more script tags will be injected than in the production environment * 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 * so that we can check if the rest of the HTML is without whitespace
*/ */
function removeDoctypeLineInDev(html){ function removeDoctypeLineInDev(html) {
return html.slice(-100) return html.slice(-100);
} }
describe('HTML minification', () => { describe('HTML minification', () => {
@ -63,7 +63,7 @@ describe('HTML minification', () => {
fixture = await loadFixture({ fixture = await loadFixture({
root: './fixtures/minification-html/', root: './fixtures/minification-html/',
output: 'server', output: 'server',
adapter: testAdapter() adapter: testAdapter(),
}); });
await fixture.build(); await fixture.build();
}); });