mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-06-12 15:13:32 -07:00
chore(release): prepare v0.16.0
This commit is contained in:
@@ -845,10 +845,22 @@ test('getTrendsDashboard redacts legacy Jellyfin stream titles', () => {
|
||||
];
|
||||
|
||||
assert.deepEqual([...new Set(titles)], ['Jellyfin Video']);
|
||||
assert.equal(titles.some((title) => title.includes('api_key=')), false);
|
||||
assert.equal(titles.some((title) => title.includes('api key')), false);
|
||||
assert.equal(titles.some((title) => title.includes('secret-token')), false);
|
||||
assert.equal(titles.some((title) => title.includes('stream?')), false);
|
||||
assert.equal(
|
||||
titles.some((title) => title.includes('api_key=')),
|
||||
false,
|
||||
);
|
||||
assert.equal(
|
||||
titles.some((title) => title.includes('api key')),
|
||||
false,
|
||||
);
|
||||
assert.equal(
|
||||
titles.some((title) => title.includes('secret-token')),
|
||||
false,
|
||||
);
|
||||
assert.equal(
|
||||
titles.some((title) => title.includes('stream?')),
|
||||
false,
|
||||
);
|
||||
} finally {
|
||||
db.close();
|
||||
cleanupDbPath(dbPath);
|
||||
|
||||
@@ -106,7 +106,9 @@ test('handleMpvCommandFromIpc emits resolved feedback for secondary subtitle tra
|
||||
await new Promise((resolve) => setImmediate(resolve));
|
||||
assert.deepEqual(sentCommands, [['set_property', 'secondary-sid', 'auto']]);
|
||||
assert.deepEqual(osd, []);
|
||||
assert.deepEqual(playbackFeedback, ['Secondary subtitle track: External #8 - English Commentary']);
|
||||
assert.deepEqual(playbackFeedback, [
|
||||
'Secondary subtitle track: External #8 - English Commentary',
|
||||
]);
|
||||
});
|
||||
|
||||
test('handleMpvCommandFromIpc emits feedback for subtitle delay keybinding proxies', async () => {
|
||||
|
||||
@@ -175,7 +175,10 @@ test('update overlay notification action triggers install flow', () => {
|
||||
assert.match(source, /actionId === OPEN_ANKI_CARD_ACTION_ID && noteId !== undefined/);
|
||||
assert.match(source, /appState\.ankiIntegration\?\.openNoteInAnki\(noteId\)/);
|
||||
assert.match(source, /appState\.runtimeOptionsManager\?\.getEffectiveAnkiConnectConfig/);
|
||||
assert.match(source, /new AnkiConnectClient\(\s*effectiveAnkiConfig\.url \|\| DEFAULT_CONFIG\.ankiConnect\.url/);
|
||||
assert.match(
|
||||
source,
|
||||
/new AnkiConnectClient\(\s*effectiveAnkiConfig\.url \|\| DEFAULT_CONFIG\.ankiConnect\.url/,
|
||||
);
|
||||
assert.match(source, /fallbackClient\.openNoteInBrowser\(noteId\)/);
|
||||
});
|
||||
|
||||
|
||||
@@ -37,7 +37,11 @@ test('overlay loading OSD shows spinner ticks and clears when stopped', () => {
|
||||
controller.stop();
|
||||
controller.stop();
|
||||
|
||||
assert.deepEqual(messages, ['Overlay loading |', 'Overlay loading /', 'Overlay loading -', 'clear']);
|
||||
assert.deepEqual(messages, [
|
||||
'Overlay loading |',
|
||||
'Overlay loading /',
|
||||
'Overlay loading -',
|
||||
'clear',
|
||||
]);
|
||||
assert.deepEqual(clearedTimers, ['timer']);
|
||||
});
|
||||
|
||||
|
||||
@@ -93,7 +93,9 @@ test('renderer restores subtitle sidebar open state only on visible overlay laye
|
||||
const sidebarRestoreIndex = indexOfRequired(
|
||||
"ctx.platform.overlayLayer === 'visible' && (await window.electronAPI.getSubtitleSidebarOpen())",
|
||||
);
|
||||
const sidebarModalIndex = indexOfRequired('const subtitleSidebarModal = createSubtitleSidebarModal');
|
||||
const sidebarModalIndex = indexOfRequired(
|
||||
'const subtitleSidebarModal = createSubtitleSidebarModal',
|
||||
);
|
||||
|
||||
assert.ok(sidebarModalIndex < sidebarRestoreIndex);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user