Add test for dropped language name

This commit is contained in:
Eric Rosenbaum 2019-10-31 14:56:28 -04:00
parent 83781fd380
commit 94e2478a10

View file

@ -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');