From 9927e0f120a26fe597bd59fa2124b2e3065c0c6d Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Tue, 26 Apr 2022 15:25:23 +0000 Subject: [PATCH] [ci] format --- packages/create-astro/test/install-step.test.js | 16 ++++++++-------- 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';