Merge pull request #3148 from strongloop/backport/fix-language-in-tests

Use English when running Mocha tests
This commit is contained in:
Miroslav Bajtoš 2017-01-27 13:10:49 +01:00 committed by GitHub
commit 2ade55ec03
3 changed files with 13 additions and 1 deletions

View File

@ -88,7 +88,8 @@ module.exports = function(grunt) {
src: 'test/*.js', src: 'test/*.js',
options: { options: {
reporter: 'dot', reporter: 'dot',
} require: require.resolve('./test/helpers/use-english.js'),
},
}, },
'unit-xml': { 'unit-xml': {
src: 'test/*.js', src: 'test/*.js',

View File

@ -0,0 +1,10 @@
'use strict';
var env = process.env;
// delete any user-provided language settings
delete env.LC_ALL;
delete env.LC_MESSAGES;
delete env.LANG;
delete env.LANGUAGE;
delete env.STRONGLOOP_GLOBALIZE_APP_LANGUAGE;

1
test/mocha.opts Normal file
View File

@ -0,0 +1 @@
--require ./test/helpers/use-english