mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
refactor(core): normalize core service naming
Standardize core service module and export names to reduce naming ambiguity and make imports predictable across runtime, tests, scripts, and docs.
This commit is contained in:
@@ -342,7 +342,6 @@ test("handleCliCommand runs AniList retry command", async () => {
|
||||
assert.ok(calls.includes("retryAnilistQueue"));
|
||||
assert.ok(calls.includes("log:AniList retry processed."));
|
||||
});
|
||||
|
||||
test("handleCliCommand runs refresh-known-words command", () => {
|
||||
const { deps, calls } = createDeps();
|
||||
|
||||
|
||||
@@ -54,9 +54,9 @@ test("mineSentenceCard handles missing integration and disconnected mpv", async
|
||||
|
||||
assert.equal(
|
||||
await mineSentenceCard({
|
||||
ankiIntegration: null,
|
||||
mpvClient: null,
|
||||
showMpvOsd: (text) => osd.push(text),
|
||||
ankiIntegration: null,
|
||||
mpvClient: null,
|
||||
showMpvOsd: (text) => osd.push(text),
|
||||
}),
|
||||
false,
|
||||
);
|
||||
@@ -64,19 +64,19 @@ test("mineSentenceCard handles missing integration and disconnected mpv", async
|
||||
|
||||
assert.equal(
|
||||
await mineSentenceCard({
|
||||
ankiIntegration: {
|
||||
updateLastAddedFromClipboard: async () => {},
|
||||
triggerFieldGroupingForLastAddedCard: async () => {},
|
||||
markLastCardAsAudioCard: async () => {},
|
||||
createSentenceCard: async () => false,
|
||||
},
|
||||
mpvClient: {
|
||||
connected: false,
|
||||
currentSubText: "line",
|
||||
currentSubStart: 1,
|
||||
currentSubEnd: 2,
|
||||
},
|
||||
showMpvOsd: (text) => osd.push(text),
|
||||
ankiIntegration: {
|
||||
updateLastAddedFromClipboard: async () => {},
|
||||
triggerFieldGroupingForLastAddedCard: async () => {},
|
||||
markLastCardAsAudioCard: async () => {},
|
||||
createSentenceCard: async () => false,
|
||||
},
|
||||
mpvClient: {
|
||||
connected: false,
|
||||
currentSubText: "line",
|
||||
currentSubStart: 1,
|
||||
currentSubEnd: 2,
|
||||
},
|
||||
showMpvOsd: (text) => osd.push(text),
|
||||
}),
|
||||
false,
|
||||
);
|
||||
@@ -180,7 +180,7 @@ test("handleMineSentenceDigit reports async create failures", async () => {
|
||||
assert.equal(cardsMined, 0);
|
||||
});
|
||||
|
||||
test("handleMineSentenceDigitService increments successful card count", async () => {
|
||||
test("handleMineSentenceDigit increments successful card count", async () => {
|
||||
const osd: string[] = [];
|
||||
let cardsMined = 0;
|
||||
|
||||
|
||||
@@ -112,8 +112,8 @@ import {
|
||||
loadYomitanExtension as loadYomitanExtensionCore,
|
||||
markLastCardAsAudioCard as markLastCardAsAudioCardCore,
|
||||
DEFAULT_MPV_SUBTITLE_RENDER_METRICS,
|
||||
mineSentenceCard as mineSentenceCardCore,
|
||||
ImmersionTrackerService,
|
||||
mineSentenceCard as mineSentenceCardCore,
|
||||
openYomitanSettingsWindow,
|
||||
playNextSubtitleRuntime,
|
||||
registerGlobalShortcuts as registerGlobalShortcutsCore,
|
||||
|
||||
Reference in New Issue
Block a user