Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored and astrobot-houston committed Oct 11, 2024
1 parent 2f5b28e commit 411af55
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/create-astro/test/typescript.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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',
);
});
});

Expand All @@ -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' }),
);
Expand Down

0 comments on commit 411af55

Please sign in to comment.