mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
77b9c95352
commit
d4dbfe8974
1 changed files with 9 additions and 3 deletions
|
@ -58,8 +58,10 @@ describe('astro cli', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const hostToExposeFlags = [
|
||||||
const hostToExposeFlags = [['', ''], ['--hostname', 'localhost']];
|
['', ''],
|
||||||
|
['--hostname', 'localhost'],
|
||||||
|
];
|
||||||
hostToExposeFlags.forEach(([flag, flagValue]) => {
|
hostToExposeFlags.forEach(([flag, flagValue]) => {
|
||||||
it(`astro ${cmd} ${flag} ${flagValue} - host to expose`, async () => {
|
it(`astro ${cmd} ${flag} ${flagValue} - host to expose`, async () => {
|
||||||
const { local, network } = await cliServerLogSetupWithFixture([flag, flagValue], cmd);
|
const { local, network } = await cliServerLogSetupWithFixture([flag, flagValue], cmd);
|
||||||
|
@ -73,7 +75,11 @@ describe('astro cli', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const noNetworkLogFlags = [['--host', 'localhost'], ['--host', '127.0.0.1'], ['--hostname', '127.0.0.1']];
|
const noNetworkLogFlags = [
|
||||||
|
['--host', 'localhost'],
|
||||||
|
['--host', '127.0.0.1'],
|
||||||
|
['--hostname', '127.0.0.1'],
|
||||||
|
];
|
||||||
noNetworkLogFlags.forEach(([flag, flagValue]) => {
|
noNetworkLogFlags.forEach(([flag, flagValue]) => {
|
||||||
it(`astro ${cmd} ${flag} ${flagValue} - no network log`, async () => {
|
it(`astro ${cmd} ${flag} ${flagValue} - no network log`, async () => {
|
||||||
const { local, network } = await cliServerLogSetupWithFixture([flag, flagValue], cmd);
|
const { local, network } = await cliServerLogSetupWithFixture([flag, flagValue], cmd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue