[ci] format
This commit is contained in:
parent
763ff2d1e4
commit
dd8dd6b31e
3 changed files with 4 additions and 8 deletions
|
@ -466,7 +466,6 @@ export interface AstroUserConfig {
|
|||
*/
|
||||
site?: string;
|
||||
|
||||
|
||||
/**
|
||||
* @docs
|
||||
* @name compressHTML
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue