diff options
author | 2022-04-26 15:25:23 +0000 | |
---|---|---|
committer | 2022-04-26 15:25:23 +0000 | |
commit | 9927e0f120a26fe597bd59fa2124b2e3065c0c6d (patch) | |
tree | 950d0b746a433524ca3a4a267c196ddc622dc2d2 | |
parent | 38e5e9e9825876cd0ae14a648b51bdf397e81169 (diff) | |
download | astro-9927e0f120a26fe597bd59fa2124b2e3065c0c6d.tar.gz astro-9927e0f120a26fe597bd59fa2124b2e3065c0c6d.tar.zst astro-9927e0f120a26fe597bd59fa2124b2e3065c0c6d.zip |
[ci] format
-rw-r--r-- | packages/create-astro/test/install-step.test.js | 16 | ||||
-rw-r--r-- | packages/create-astro/test/utils.js | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/packages/create-astro/test/install-step.test.js b/packages/create-astro/test/install-step.test.js index 91e3bc66c..10f27a1a8 100644 --- a/packages/create-astro/test/install-step.test.js +++ b/packages/create-astro/test/install-step.test.js @@ -15,12 +15,12 @@ describe('[create-astro] install', function () { this.beforeAll(() => { initialEnvValue = process.env.npm_config_user_agent; process.env.npm_config_user_agent = FAKE_PACKAGE_MANAGER; - }) + }); this.afterAll(() => { process.env.npm_config_user_agent = initialEnvValue; - }) + }); - it('should respect package manager in prompt', function() { + it('should respect package manager in prompt', function () { const { stdout, stdin } = setup([tempDir, '--dryrun']); return promiseWithTimeout((resolve) => { const seen = new Set(); @@ -34,7 +34,7 @@ describe('[create-astro] install', function () { seen.add(PROMPT_MESSAGES.frameworks); stdin.write('\x0D'); } - + if (!seen.has(installPrompt) && chunk.includes(installPrompt)) { seen.add(installPrompt); resolve(); @@ -43,7 +43,7 @@ describe('[create-astro] install', function () { }); }); - it('should respect package manager in next steps', function() { + it('should respect package manager in next steps', function () { const { stdout, stdin } = setup([tempDir, '--dryrun']); return promiseWithTimeout((resolve) => { const seen = new Set(); @@ -57,9 +57,9 @@ describe('[create-astro] install', function () { seen.add(PROMPT_MESSAGES.frameworks); stdin.write('\x0D'); } - + if (!seen.has(installPrompt) && chunk.includes(installPrompt)) { - seen.add(installPrompt) + seen.add(installPrompt); stdin.write('n\x0D'); } if (chunk.includes('banana dev')) { @@ -68,4 +68,4 @@ describe('[create-astro] install', function () { }); }); }); -}) +}); diff --git a/packages/create-astro/test/utils.js b/packages/create-astro/test/utils.js index c5519c7bf..4e0e2d5fc 100644 --- a/packages/create-astro/test/utils.js +++ b/packages/create-astro/test/utils.js @@ -1,4 +1,4 @@ -import { execa } from 'execa' +import { execa } from 'execa'; import { fileURLToPath } from 'url'; import { dirname } from 'path'; |