spec: Do not assume en-US locale to be the current
This commit is contained in:
parent
750c3d05aa
commit
d5ecbfc539
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ describe('chromium feature', () => {
|
|||
|
||||
describe('command line switches', () => {
|
||||
describe('--lang switch', () => {
|
||||
const currentLocale = app.getLocale()
|
||||
const testLocale = (locale, result, done) => {
|
||||
const appPath = path.join(__dirname, 'fixtures', 'api', 'locale-check')
|
||||
const electronPath = remote.getGlobal('process').execPath
|
||||
|
@ -44,7 +45,7 @@ describe('chromium feature', () => {
|
|||
}
|
||||
|
||||
it('should set the locale', (done) => testLocale('fr', 'fr', done))
|
||||
it('should not set an invalid locale', (done) => testLocale('asdfkl', 'en-US', done))
|
||||
it('should not set an invalid locale', (done) => testLocale('asdfkl', currentLocale, done))
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue