mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-15 01:55:52 -07:00
feat: add Anki deck dropdown with Yomitan auto-fill in settings (#95)
This commit is contained in:
@@ -49,3 +49,10 @@ test('known word deck rename selection keeps current deck on collision', () => {
|
||||
'Core',
|
||||
);
|
||||
});
|
||||
|
||||
test('Anki deck autofill uses inferred Yomitan deck only for untouched empty values', () => {
|
||||
assert.equal(ankiControls.chooseAnkiDeckAutofillValue('', 'Mining', false), 'Mining');
|
||||
assert.equal(ankiControls.chooseAnkiDeckAutofillValue('Current', 'Mining', false), null);
|
||||
assert.equal(ankiControls.chooseAnkiDeckAutofillValue('', 'Mining', true), null);
|
||||
assert.equal(ankiControls.chooseAnkiDeckAutofillValue('', ' ', false), null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user