summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/template.test.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/create-astro/test/template.test.js18
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;
- })
-})
+ });
+});