[ci] format
This commit is contained in:
parent
1bf12260af
commit
54aba7231d
4 changed files with 9 additions and 9 deletions
|
@ -16,10 +16,10 @@ export interface LogOptions {
|
||||||
|
|
||||||
// Hey, locales are pretty complicated! Be careful modifying this logic...
|
// Hey, locales are pretty complicated! Be careful modifying this logic...
|
||||||
// If we throw at the top-level, international users can't use Astro.
|
// If we throw at the top-level, international users can't use Astro.
|
||||||
//
|
//
|
||||||
// Using `[]` sets the default locale properly from the system!
|
// Using `[]` sets the default locale properly from the system!
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#parameters
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#parameters
|
||||||
//
|
//
|
||||||
// Here be the dragons we've slain:
|
// Here be the dragons we've slain:
|
||||||
// https://github.com/withastro/astro/issues/2625
|
// https://github.com/withastro/astro/issues/2625
|
||||||
// https://github.com/withastro/astro/issues/3309
|
// https://github.com/withastro/astro/issues/3309
|
||||||
|
|
|
@ -118,13 +118,13 @@ describe('astro cli i18n', () => {
|
||||||
const projectRootURL = new URL('./fixtures/astro-basic/', import.meta.url);
|
const projectRootURL = new URL('./fixtures/astro-basic/', import.meta.url);
|
||||||
let error = null;
|
let error = null;
|
||||||
try {
|
try {
|
||||||
const proc = cli('dev', '--root', fileURLToPath(projectRootURL), { env: { LANG: locale }});
|
const proc = cli('dev', '--root', fileURLToPath(projectRootURL), { env: { LANG: locale } });
|
||||||
await parseCliDevStart(proc)
|
await parseCliDevStart(proc);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
error = e.message;
|
error = e.message;
|
||||||
}
|
}
|
||||||
expect(error).to.be.null;
|
expect(error).to.be.null;
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
|
|
|
@ -33,7 +33,7 @@ describe('Error display', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Framework components', function() {
|
describe('Framework components', function () {
|
||||||
let devServer;
|
let devServer;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
|
|
@ -8,10 +8,10 @@ type ConsoleStream = Writable & {
|
||||||
|
|
||||||
// Hey, locales are pretty complicated! Be careful modifying this logic...
|
// Hey, locales are pretty complicated! Be careful modifying this logic...
|
||||||
// If we throw at the top-level, international users can't use Astro.
|
// If we throw at the top-level, international users can't use Astro.
|
||||||
//
|
//
|
||||||
// Using `[]` sets the default locale properly from the system!
|
// Using `[]` sets the default locale properly from the system!
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#parameters
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#parameters
|
||||||
//
|
//
|
||||||
// Here be the dragons we've slain:
|
// Here be the dragons we've slain:
|
||||||
// https://github.com/withastro/astro/issues/2625
|
// https://github.com/withastro/astro/issues/2625
|
||||||
// https://github.com/withastro/astro/issues/3309
|
// https://github.com/withastro/astro/issues/3309
|
||||||
|
|
Loading…
Add table
Reference in a new issue