diff --git a/test/unit/extension_text_to_speech.js b/test/unit/extension_text_to_speech.js index b76151d8e..668f8101a 100644 --- a/test/unit/extension_text_to_speech.js +++ b/test/unit/extension_text_to_speech.js @@ -23,6 +23,12 @@ test('if an unsupported language is dropped onto the set language block, use def t.end(); }); +test('if a supported language name is dropped onto the set language block, use it', t => { + ext.setLanguage({LANGUAGE: 'espaƱol'}); + t.strictEqual(ext.getCurrentLanguage(), 'es'); + t.end(); +}); + test('get the extension locale for a supported locale that differs', t => { ext.setLanguage({LANGUAGE: 'ja-hira'}); t.strictEqual(ext.getCurrentLanguage(), 'ja');