mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-10 04:46:07 -08:00
feat: add Anki deck dropdown with Yomitan auto-fill in settings (#95)
This commit is contained in:
1 parent
75f9b8a803
commit
8d0535f3ca
24 files changed
+415
-9
No files matched your search
@@ -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