Преглед изворни кода

Add CSS to karma

This is useful for rich text tests which rely on DOM structure/CSS layout of
rich text
Alasdair Smith пре 8 година
родитељ
комит
b417516c7f
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      services/web/karma.conf.js

+ 5 - 2
services/web/karma.conf.js

@@ -26,7 +26,10 @@ module.exports = function (config) {
       { pattern: 'test/unit_frontend/js/**/*.js', included: false },
       // Include ES test files
       'test/unit_frontend/es/**/*.js',
-      'modules/**/test/unit_frontend/es/**/*.js'
+      'modules/**/test/unit_frontend/es/**/*.js',
+      // Include CSS (there is some in js/libs dir)
+      'public/stylesheets/**/*.css',
+      'public/js/libs/**/*.css'
     ],
     middleware: ['fake-img'],
     preprocessors: {
@@ -74,4 +77,4 @@ function fakeImgMiddlewareFactory () {
     }
     next()
   }
-}
+}