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

Use English when running Mocha tests
This commit is contained in:
Miroslav Bajtoš 2017-01-27 11:24:52 +01:00 committed by GitHub
commit 450aa84ae8
4 changed files with 12 additions and 1 deletions

View File

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

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;

View File

@ -21,7 +21,6 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
'node_modules/es5-shim/es5-shim.js',
'test/support.js',
'test/loopback.test.js',
'test/model.test.js',
// [rfeng] Browserified common/models/application.js

1
test/mocha.opts Normal file
View File

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