summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/context.test.js
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2023-02-06 16:21:48 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-02-06 16:21:48 +0000
commit6a59531ff9322b3a3fc288487148d77646a8ffc9 (patch)
tree24d6c99562a3abf8d5c179b13c1ffdb7bacb7ead /packages/create-astro/test/context.test.js
parent8d2187d8b8587b2a3a0207d9ffa8667c43686436 (diff)
downloadastro-6a59531ff9322b3a3fc288487148d77646a8ffc9.tar.gz
astro-6a59531ff9322b3a3fc288487148d77646a8ffc9.tar.zst
astro-6a59531ff9322b3a3fc288487148d77646a8ffc9.zip
[ci] format
Diffstat (limited to 'packages/create-astro/test/context.test.js')
-rw-r--r--packages/create-astro/test/context.test.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/create-astro/test/context.test.js b/packages/create-astro/test/context.test.js
index d6cb1c70f..113417417 100644
--- a/packages/create-astro/test/context.test.js
+++ b/packages/create-astro/test/context.test.js
@@ -10,53 +10,53 @@ describe('context', () => {
expect(ctx.template).to.be.undefined;
expect(ctx.skipHouston).to.eq(os.platform() === 'win32');
expect(ctx.dryRun).to.be.undefined;
- })
+ });
it('project name', async () => {
const ctx = await getContext(['foobar']);
expect(ctx.projectName).to.eq('foobar');
- })
+ });
it('template', async () => {
const ctx = await getContext(['--template', 'minimal']);
expect(ctx.template).to.eq('minimal');
- })
+ });
it('skip houston (explicit)', async () => {
const ctx = await getContext(['--skip-houston']);
expect(ctx.skipHouston).to.eq(true);
- })
+ });
it('skip houston (yes)', async () => {
const ctx = await getContext(['-y']);
expect(ctx.skipHouston).to.eq(true);
- })
+ });
it('skip houston (no)', async () => {
const ctx = await getContext(['-n']);
expect(ctx.skipHouston).to.eq(true);
- })
+ });
it('skip houston (install)', async () => {
const ctx = await getContext(['--install']);
expect(ctx.skipHouston).to.eq(true);
- })
+ });
it('dry run', async () => {
const ctx = await getContext(['--dry-run']);
expect(ctx.dryRun).to.eq(true);
- })
+ });
it('install', async () => {
const ctx = await getContext(['--install']);
expect(ctx.install).to.eq(true);
- })
+ });
it('no install', async () => {
const ctx = await getContext(['--no-install']);
expect(ctx.install).to.eq(false);
- })
+ });
it('git', async () => {
const ctx = await getContext(['--git']);
expect(ctx.git).to.eq(true);
- })
+ });
it('no git', async () => {
const ctx = await getContext(['--no-git']);
expect(ctx.git).to.eq(false);
- })
+ });
it('typescript', async () => {
const ctx = await getContext(['--typescript', 'strict']);
expect(ctx.typescript).to.eq('strict');
- })
-})
+ });
+});