diff options
author | 2023-02-06 16:21:48 +0000 | |
---|---|---|
committer | 2023-02-06 16:21:48 +0000 | |
commit | 6a59531ff9322b3a3fc288487148d77646a8ffc9 (patch) | |
tree | 24d6c99562a3abf8d5c179b13c1ffdb7bacb7ead /packages/create-astro/test/git.test.js | |
parent | 8d2187d8b8587b2a3a0207d9ffa8667c43686436 (diff) | |
download | astro-6a59531ff9322b3a3fc288487148d77646a8ffc9.tar.gz astro-6a59531ff9322b3a3fc288487148d77646a8ffc9.tar.zst astro-6a59531ff9322b3a3fc288487148d77646a8ffc9.zip |
[ci] format
Diffstat (limited to 'packages/create-astro/test/git.test.js')
-rw-r--r-- | packages/create-astro/test/git.test.js | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/packages/create-astro/test/git.test.js b/packages/create-astro/test/git.test.js index 4b048156a..6111b1398 100644 --- a/packages/create-astro/test/git.test.js +++ b/packages/create-astro/test/git.test.js @@ -10,14 +10,19 @@ describe('git', () => { const fixture = setup(); it('none', async () => { - const context = { cwd: '', dryRun: true, prompt: (() => ({ git: false }))}; + const context = { cwd: '', dryRun: true, prompt: () => ({ git: false }) }; await git(context); expect(fixture.hasMessage('Skipping Git initialization')).to.be.true; - }) + }); it('already initialized', async () => { - const context = { git: true, cwd: './test/fixtures/not-empty', dryRun: true, prompt: (() => ({ git: false }))}; + const context = { + git: true, + cwd: './test/fixtures/not-empty', + dryRun: true, + prompt: () => ({ git: false }), + }; await execa('git', ['init'], { cwd: './test/fixtures/not-empty' }); await git(context); @@ -25,19 +30,19 @@ describe('git', () => { // Cleanup fs.rmSync('./test/fixtures/not-empty/.git', { recursive: true, force: true }); - }) + }); it('yes (--dry-run)', async () => { - const context = { cwd: '', dryRun: true, prompt: (() => ({ git: true }))}; + const context = { cwd: '', dryRun: true, prompt: () => ({ git: true }) }; await git(context); expect(fixture.hasMessage('Skipping Git initialization')).to.be.true; - }) + }); it('no (--dry-run)', async () => { - const context = { cwd: '', dryRun: true, prompt: (() => ({ git: false }))}; + const context = { cwd: '', dryRun: true, prompt: () => ({ git: false }) }; await git(context); expect(fixture.hasMessage('Skipping Git initialization')).to.be.true; - }) -}) + }); +}); |