0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

[ci] format

This commit is contained in:
Florian Lefebvre 2024-07-17 10:36:48 +00:00 committed by Emanuele Stoppa
parent 6975aca738
commit 7b7ad9f3f4
3 changed files with 4 additions and 4 deletions

View file

@ -1240,7 +1240,7 @@ export const EnvInvalidVariables = {
name: 'EnvInvalidVariables',
title: 'Invalid Environment Variables',
message: (errors: Array<string>) =>
`The following environment variables defined in \`experimental.env.schema\` are invalid:\n\n${errors.map(err => `- ${err}`).join('\n')}\n`,
`The following environment variables defined in \`experimental.env.schema\` are invalid:\n\n${errors.map((err) => `- ${err}`).join('\n')}\n`,
} satisfies ErrorData;
/**

View file

@ -9,7 +9,7 @@ import {
VIRTUAL_MODULES_IDS_VALUES,
} from './constants.js';
import type { EnvSchema } from './schema.js';
import { getEnvFieldType, validateEnvVariable, type ValidationResultErrors } from './validators.js';
import { type ValidationResultErrors, getEnvFieldType, validateEnvVariable } from './validators.js';
// TODO: reminders for when astro:env comes out of experimental
// Types should always be generated (like in types/content.d.ts). That means the client module will be empty

View file

@ -277,8 +277,8 @@ describe('astro:env validators', () => {
fixture.givenInput('ab', {
type: 'string',
startsWith: 'x',
min: 5
})
min: 5,
});
fixture.thenResultShouldBeInvalid(['startsWith', 'min']);
});