[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;
/**
* @docs
* @name compressHTML

View file

@ -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)

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
* 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();
});