mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
2f5b28e938
commit
411af55153
1 changed files with 12 additions and 3 deletions
|
@ -91,7 +91,10 @@ describe('typescript: setup tsconfig', async () => {
|
||||||
assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), {
|
assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), {
|
||||||
extends: 'astro/tsconfigs/strict',
|
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 () => {
|
it('exists', async () => {
|
||||||
|
@ -101,7 +104,10 @@ describe('typescript: setup tsconfig', async () => {
|
||||||
assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), {
|
assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), {
|
||||||
extends: 'astro/tsconfigs/strict',
|
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 });
|
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(
|
const { scripts, dependencies } = JSON.parse(
|
||||||
fs.readFileSync(packageJson, { encoding: 'utf-8' }),
|
fs.readFileSync(packageJson, { encoding: 'utf-8' }),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue