summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bluwy@users.noreply.github.com> 2024-10-11 12:49:26 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-10-11 12:49:26 +0000
commit411af55153970b89094a2bfe10206bc760023673 (patch)
tree7dcf1ea84cd1284b5f215d2fc7afa7ae3ec9f6c4
parent2f5b28e93851f39708d0d683832c70730b40afe9 (diff)
downloadastro-411af55153970b89094a2bfe10206bc760023673.tar.gz
astro-411af55153970b89094a2bfe10206bc760023673.tar.zst
astro-411af55153970b89094a2bfe10206bc760023673.zip
[ci] format
-rw-r--r--packages/create-astro/test/typescript.test.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/create-astro/test/typescript.test.js b/packages/create-astro/test/typescript.test.js
index b5e09c2c0..0cd6a858c 100644
--- a/packages/create-astro/test/typescript.test.js
+++ b/packages/create-astro/test/typescript.test.js
@@ -91,7 +91,10 @@ describe('typescript: setup tsconfig', async () => {
assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), {
extends: 'astro/tsconfigs/strict',
});
- assert(fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'), 'The file does not end with a newline');
+ assert(
+ fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'),
+ 'The file does not end with a newline',
+ );
});
it('exists', async () => {
@@ -101,7 +104,10 @@ describe('typescript: setup tsconfig', async () => {
assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), {
extends: 'astro/tsconfigs/strict',
});
- assert(fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'), 'The file does not end with a newline');
+ assert(
+ fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'),
+ 'The file does not end with a newline',
+ );
});
});
@@ -126,7 +132,10 @@ describe('typescript: setup package', async () => {
);
await setupTypeScript('strictest', { cwd: fileURLToPath(root), install: false });
- assert(fs.readFileSync(packageJson, { encoding: 'utf-8' }).endsWith('\n'), 'The file does not end with a newline');
+ assert(
+ fs.readFileSync(packageJson, { encoding: 'utf-8' }).endsWith('\n'),
+ 'The file does not end with a newline',
+ );
const { scripts, dependencies } = JSON.parse(
fs.readFileSync(packageJson, { encoding: 'utf-8' }),
);