diff options
author | 2022-04-26 15:25:23 +0000 | |
---|---|---|
committer | 2022-04-26 15:25:23 +0000 | |
commit | 9927e0f120a26fe597bd59fa2124b2e3065c0c6d (patch) | |
tree | 950d0b746a433524ca3a4a267c196ddc622dc2d2 /packages/create-astro/test/install-step.test.js | |
parent | 38e5e9e9825876cd0ae14a648b51bdf397e81169 (diff) | |
download | astro-9927e0f120a26fe597bd59fa2124b2e3065c0c6d.tar.gz astro-9927e0f120a26fe597bd59fa2124b2e3065c0c6d.tar.zst astro-9927e0f120a26fe597bd59fa2124b2e3065c0c6d.zip |
[ci] format
Diffstat (limited to 'packages/create-astro/test/install-step.test.js')
-rw-r--r-- | packages/create-astro/test/install-step.test.js | 16 |
1 files changed, 8 insertions, 8 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 () { }); }); }); -}) +}); |