mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-16 09:22:00 +00:00
chore(autofix): apply prettier + eslint fixes via /autofix command
This commit is contained in:
parent
c50541bd63
commit
1fbe8f661d
2 changed files with 5 additions and 4 deletions
|
|
@ -129,7 +129,6 @@ describe('doInitLbug WAL corruption guard — structural', () => {
|
|||
expect(mismatchIdx).toBeGreaterThan(-1);
|
||||
expect(mismatchIdx).toBeLessThan(warnIdx);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// ─── Behavioural tests ────────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -57,8 +57,7 @@ vi.mock('../../src/core/lbug/sidecar-recovery.js', () => ({
|
|||
|
||||
const { initLbug, closeLbug, isLbugReady, unpinRepo } =
|
||||
await import('../../src/core/lbug/pool-adapter.js');
|
||||
const { STORAGE_VERSION_MISMATCH_SUGGESTION } =
|
||||
await import('../../src/core/lbug/lbug-config.js');
|
||||
const { STORAGE_VERSION_MISMATCH_SUGGESTION } = await import('../../src/core/lbug/lbug-config.js');
|
||||
|
||||
const NATIVE_STORAGE_VERSION_MISMATCH =
|
||||
'Runtime exception: Trying to read a database file with a different version. Database file version: 43, Current build storage version: 42';
|
||||
|
|
@ -120,7 +119,10 @@ describe('pool-adapter storage-version fail-fast and lock-retry backoff', () =>
|
|||
const otherPath = dbPathFor(otherId);
|
||||
|
||||
createLbugDatabaseMock.mockImplementation((_mod: unknown, dbPath: string) => {
|
||||
if (String(dbPath).includes(`${path.sep}locked.lbug`) || String(dbPath).endsWith('locked.lbug')) {
|
||||
if (
|
||||
String(dbPath).includes(`${path.sep}locked.lbug`) ||
|
||||
String(dbPath).endsWith('locked.lbug')
|
||||
) {
|
||||
throw new Error('Could not set lock on file : /tmp/locked.lbug');
|
||||
}
|
||||
return goodDb();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue