Spellcheck: Use full locale, otherwise all which match base

This commit is contained in:
Scott Nonnenberg 2022-06-27 13:44:13 -07:00 committed by GitHub
parent 5d570e2d67
commit 054e443071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View file

@ -10,7 +10,6 @@ describe('SpellCheck', () => {
it('works with locale and base available', () => {
assert.deepEqual(getLanguages('en-US', ['en-US', 'en-CA', 'en']), [
'en-US',
'en',
]);
});
@ -22,7 +21,7 @@ describe('SpellCheck', () => {
});
it('works with only base locale available', () => {
assert.deepEqual(getLanguages('en-US', ['en', 'en-CA']), ['en']);
assert.deepEqual(getLanguages('en-US', ['en', 'en-CA']), ['en', 'en-CA']);
});
it('works with only full locale available', () => {