Restore multi-copy digit capture and add AniList selection (#56)

This commit is contained in:
2026-04-25 21:44:55 -07:00
committed by GitHub
parent 7ac51cd5e9
commit d8934647a9
140 changed files with 4097 additions and 326 deletions

View File

@@ -99,6 +99,25 @@ test('parseArgs maps dictionary command and log-level override', () => {
assert.equal(parsed.logLevel, 'debug');
});
test('parseArgs maps dictionary candidate lookup and manual selection', () => {
const candidateParsed = parseArgs(['dictionary', '--candidates', '.'], 'subminer', {});
assert.equal(candidateParsed.dictionaryCandidates, true);
assert.equal(candidateParsed.dictionaryTarget, process.cwd());
const selectParsed = parseArgs(['dictionary', '--select', '21355', '.'], 'subminer', {});
assert.equal(selectParsed.dictionarySelect, true);
assert.equal(selectParsed.dictionaryAnilistId, 21355);
assert.equal(selectParsed.dictionaryTarget, process.cwd());
});
test('parseArgs rejects conflicting dictionary candidate and selection modes', () => {
const exit = withProcessExitIntercept(() => {
parseArgs(['dictionary', '--candidates', '--select', '21355', '.'], 'subminer', {});
});
assert.equal(exit.code, 1);
});
test('parseArgs maps stats command and log-level override', () => {
const parsed = parseArgs(['stats', '--log-level', 'debug'], 'subminer', {});