summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/create-astro.test.js
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2021-06-08 15:12:07 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-06-08 15:12:07 +0000
commita7594cfcdf7f12b1eba9b060e749b6d5690da167 (patch)
tree4ec64204300e32094e837e88418f68d7266fc87f /packages/create-astro/test/create-astro.test.js
parent6bca7c83a7e2d62015f45f873b0f69f11b4d902b (diff)
downloadastro-a7594cfcdf7f12b1eba9b060e749b6d5690da167.tar.gz
astro-a7594cfcdf7f12b1eba9b060e749b6d5690da167.tar.zst
astro-a7594cfcdf7f12b1eba9b060e749b6d5690da167.zip
[ci] yarn format
Diffstat (limited to 'packages/create-astro/test/create-astro.test.js')
-rw-r--r--packages/create-astro/test/create-astro.test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/create-astro/test/create-astro.test.js b/packages/create-astro/test/create-astro.test.js
index b83d4f4a6..3b9e4f013 100644
--- a/packages/create-astro/test/create-astro.test.js
+++ b/packages/create-astro/test/create-astro.test.js
@@ -5,7 +5,7 @@ import { suite } from 'uvu';
import execa from 'execa';
import del from 'del';
import * as assert from 'uvu/assert';
-import {TEMPLATES} from '../dist/templates.js';
+import { TEMPLATES } from '../dist/templates.js';
const CreateAstro = suite('npm init astro');
@@ -17,14 +17,14 @@ CreateAstro.before(async () => {
await fs.promises.mkdir(fixturesDir);
});
-for (const {value: template} of TEMPLATES) {
+for (const { value: template } of TEMPLATES) {
// TODO: Unskip once repo is made public. Because the repo is private, the templates can't yet be downloaded.
CreateAstro.skip(template, async () => {
const testDirectory = path.join(fixturesDir, template);
const { stdout } = await execa('../../create-astro.mjs', [testDirectory, '--template', template, '--force-overwrite'], { cwd: path.join(cwd, 'fixtures') });
- console.log(stdout);
- // test: path should formatted as './{dirName}'
+ console.log(stdout);
+ // test: path should formatted as './{dirName}'
assert.not.match(stdout, '././');
const DOES_HAVE = ['.gitignore', 'package.json', 'public', 'src'];