Skip to content

Commit 87f0eeb

Browse files
committed
style(kernel): apply oxfmt to errors.test.ts
Fixes the Lint & Format CI failure on PR #1456 — format:check flagged this file, oxfmt --write resolves it with no behavior change.
1 parent 135b7d6 commit 87f0eeb

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎src/kernel/__tests__/errors.test.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@ const EXPECTED_HINT_BY_CODE: Record<KnownAppErrorCode, string> = {
527527
'The --save-script repair session was reaped before it was finalized; re-run replay <script> --save-script from the start.',
528528
REPAIR_COMMIT_FAILED:
529529
'The repair transaction completed, but committing its healed script failed at teardown (no-clobber refusal or a filesystem error); inspect the target path/permissions, then re-run replay <script> --save-script to retry.',
530-
UNKNOWN: 'Unexpected internal error. Retry with --debug and report the diagnostics log if it persists.',
530+
UNKNOWN:
531+
'Unexpected internal error. Retry with --debug and report the diagnostics log if it persists.',
531532
};
532533

533534
for (const code of KNOWN_APP_ERROR_CODES) {
@@ -537,10 +538,7 @@ for (const code of KNOWN_APP_ERROR_CODES) {
537538
}
538539

539540
test('EXPECTED_HINT_BY_CODE covers every known code — a registry addition without a hint decision fails loudly', () => {
540-
assert.deepEqual(
541-
Object.keys(EXPECTED_HINT_BY_CODE).sort(),
542-
[...KNOWN_APP_ERROR_CODES].sort(),
543-
);
541+
assert.deepEqual(Object.keys(EXPECTED_HINT_BY_CODE).sort(), [...KNOWN_APP_ERROR_CODES].sort());
544542
});
545543

546544
test('defaultHintForCode falls back to the generic retry hint for a daemon/runner-originated code outside the registry', () => {
@@ -594,7 +592,10 @@ test('normalizeAgentDeviceError delegates to normalizeError, including the conte
594592
diagnosticId: 'diag-9',
595593
logPath: '/tmp/9.log',
596594
});
597-
assert.deepEqual(normalized, normalizeError(err, { diagnosticId: 'diag-9', logPath: '/tmp/9.log' }));
595+
assert.deepEqual(
596+
normalized,
597+
normalizeError(err, { diagnosticId: 'diag-9', logPath: '/tmp/9.log' }),
598+
);
598599
assert.equal(normalized.diagnosticId, 'diag-9');
599600
assert.equal(normalized.logPath, '/tmp/9.log');
600601
});

0 commit comments

Comments
 (0)