style: apply prettier to the repo's declared format surface

This commit is contained in:
chick
2026-09-07 01:59:24 +08:00
parent 2977f75129
commit 29a0eee854
11 changed files with 30 additions and 23 deletions
@@ -48,8 +48,7 @@ describe('verified backup, restore, and rollback foundation', () => {
]);
copy.close();
expect(snapshot.sha256).toMatch(/^[a-f0-9]{64}$/);
if (process.platform !== 'win32')
expect((await stat(backupPath)).mode & 0o777).toBe(0o600);
if (process.platform !== 'win32') expect((await stat(backupPath)).mode & 0o777).toBe(0o600);
});
// Activation renames a WAL file that a live connection still holds open;
@@ -363,8 +363,7 @@ describe('database backup and restore', () => {
const backupPath = join(directory, 'backup.sqlite');
await backupDatabase(database, backupPath);
// Windows keeps no POSIX mode bits; the 0600 guarantee is POSIX-only.
if (process.platform !== 'win32')
expect((await lstat(backupPath)).mode & 0o777).toBe(0o600);
if (process.platform !== 'win32') expect((await lstat(backupPath)).mode & 0o777).toBe(0o600);
database.close();
});