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/template.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/template.test.js')
-rw-r--r-- | packages/create-astro/test/template.test.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/create-astro/test/template.test.js b/packages/create-astro/test/template.test.js index 53b9777ff..66c7f5446 100644 --- a/packages/create-astro/test/template.test.js +++ b/packages/create-astro/test/template.test.js @@ -7,30 +7,30 @@ describe('template', () => { const fixture = setup(); it('none', async () => { - const context = { template: '', cwd: '', dryRun: true, prompt: (() => ({ template: 'blog' })) }; + const context = { template: '', cwd: '', dryRun: true, prompt: () => ({ template: 'blog' }) }; await template(context); expect(fixture.hasMessage('Skipping template copying')).to.be.true; expect(context.template).to.eq('blog'); - }) + }); it('minimal (--dry-run)', async () => { - const context = { template: 'minimal', cwd: '', dryRun: true, prompt: (() => {})}; + const context = { template: 'minimal', cwd: '', dryRun: true, prompt: () => {} }; await template(context); expect(fixture.hasMessage('Using minimal as project template')).to.be.true; - }) + }); it('basics (--dry-run)', async () => { - const context = { template: 'basics', cwd: '', dryRun: true, prompt: (() => {})}; + const context = { template: 'basics', cwd: '', dryRun: true, prompt: () => {} }; await template(context); expect(fixture.hasMessage('Using basics as project template')).to.be.true; - }) + }); it('blog (--dry-run)', async () => { - const context = { template: 'blog', cwd: '', dryRun: true, prompt: (() => {})}; + const context = { template: 'blog', cwd: '', dryRun: true, prompt: () => {} }; await template(context); expect(fixture.hasMessage('Using blog as project template')).to.be.true; - }) -}) + }); +}); |