fix(stats): don't write sentence clip to expression-audio field

- `getStatsDirectMiningAudioFieldNames` now takes a `mode` param; sentence mode skips `ExpressionAudio`
- Update test expectation: `ExpressionAudio` should be `undefined` after sentence mining
- Clarify changelog wording for the audio-field fix
- Reformat `SearchTab.test.ts` assertions (no behavior change)
This commit is contained in:
2026-06-06 01:58:01 -07:00
parent 83897c81d1
commit 2fca5bbdba
4 changed files with 10 additions and 5 deletions
@@ -22,11 +22,11 @@ test('SearchTab forwards stored secondary subtitle text when mining from search
test('SearchTab enables headword sentence search by default and forwards the toggle', () => {
const source = fs.readFileSync(SEARCH_TAB_PATH, 'utf8');
assert.match(source, /const \[searchByHeadword,\s*setSearchByHeadword\] = useState\(true\);/);
assert.match(
source,
/const \[searchByHeadword,\s*setSearchByHeadword\] = useState\(true\);/,
/apiClient\s*\.\s*searchSentences\(trimmed,\s*SEARCH_LIMIT,\s*searchByHeadword\)/,
);
assert.match(source, /apiClient\s*\.\s*searchSentences\(trimmed,\s*SEARCH_LIMIT,\s*searchByHeadword\)/);
assert.match(source, /checked=\{searchByHeadword\}/);
assert.match(source, /setSearchByHeadword\(event\.target\.checked\)/);
});