|
@@ -122,12 +122,9 @@ describe('app module', () => {
|
|
|
|
|
|
describe('app.getLocaleCountryCode()', () => {
|
|
|
it('should be empty or have length of two', () => {
|
|
|
- let expectedLength = 2;
|
|
|
- if (process.platform === 'linux' && process.env.CI) {
|
|
|
- // Linux CI machines have no locale.
|
|
|
- expectedLength = 0;
|
|
|
- }
|
|
|
- expect(app.getLocaleCountryCode()).to.be.a('string').and.have.lengthOf(expectedLength);
|
|
|
+ const localeCountryCode = app.getLocaleCountryCode();
|
|
|
+ expect(localeCountryCode).to.be.a('string');
|
|
|
+ expect(localeCountryCode.length).to.be.oneOf([0, 2]);
|
|
|
});
|
|
|
});
|
|
|
|