]> git.proxmox.com Git - mirror_novnc.git/blobdiff - karma.conf.js
Add Spanish translation
[mirror_novnc.git] / karma.conf.js
index 821007ee6bbc3ac4e8f69d5faa972e054c2dd51d..10bf372ac7de77375846213f50198fa60c6da49b 100644 (file)
@@ -5,7 +5,8 @@ module.exports = function(config) {
   var browsers = [];
   var useSauce = false;
 
-  if (process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY) {
+  // use Sauce when running on Travis
+  if (process.env.TRAVIS_JOB_NUMBER) {
     useSauce = true;
   }
 
@@ -60,6 +61,7 @@ module.exports = function(config) {
     files: [
       { pattern: 'vendor/sinon.js', included: false },
       { pattern: 'node_modules/sinon-chai/lib/sinon-chai.js', included: false },
+      { pattern: 'app/localization.js', included: false },
       { pattern: 'core/**/*.js', included: false },
       { pattern: 'vendor/pako/**/*.js', included: false },
       { pattern: 'tests/test.*.js', included: false },
@@ -89,6 +91,7 @@ module.exports = function(config) {
     // preprocess matching files before serving them to the browser
     // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
     preprocessors: {
+      'app/localization.js': ['babel'],
       'core/**/*.js': ['babel'],
       'tests/test.*.js': ['babel'],
       'tests/fake.*.js': ['babel'],