style: restore repo formatting

This commit is contained in:
2026-03-09 18:10:32 -07:00
parent a34a7489db
commit fed60c265d
85 changed files with 641 additions and 143 deletions

View File

@@ -92,11 +92,7 @@ function firstString(value: unknown): string | null {
}
function normalizeGuessitTitlePart(value: string): string {
return value
.replace(/[._]+/g, ' ')
.replace(/-/g, ' ')
.replace(/\s+/g, ' ')
.trim();
return value.replace(/[._]+/g, ' ').replace(/-/g, ' ').replace(/\s+/g, ' ').trim();
}
function readGuessitTitle(value: unknown): string | null {

View File

@@ -212,8 +212,14 @@ test('handleCliCommand reconnects MPV for second-instance --start when overlay r
handleCliCommand(args, 'second-instance', deps);
assert.ok(calls.includes('setMpvClientSocketPath:/tmp/subminer.sock'));
assert.equal(calls.some((value) => value.includes('connectMpvClient')), true);
assert.equal(calls.some((value) => value.includes('initializeOverlayRuntime')), false);
assert.equal(
calls.some((value) => value.includes('connectMpvClient')),
true,
);
assert.equal(
calls.some((value) => value.includes('initializeOverlayRuntime')),
false,
);
});
test('handleCliCommand processes --start for second-instance when overlay runtime is not initialized', () => {