From 411af55153970b89094a2bfe10206bc760023673 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 11 Oct 2024 12:49:26 +0000 Subject: [PATCH] [ci] format --- packages/create-astro/test/typescript.test.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/create-astro/test/typescript.test.js b/packages/create-astro/test/typescript.test.js index b5e09c2c027b..0cd6a858cc58 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' }), );