Skip to content

Commit

Permalink
Use English when running Mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos committed Jan 26, 2017
1 parent dfa1f60 commit 93ab864
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ module.exports = function(grunt) {
src: 'test/*.js',
options: {
reporter: 'dot',
require: require.resolve('./test/helpers/use-english.js'),
},
},
'unit-xml': {
Expand Down
10 changes: 10 additions & 0 deletions test/helpers/use-english.js
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require ./test/helpers/use-english

0 comments on commit 93ab864

Please sign in to comment.