Add CSS to karma

This is useful for rich text tests which rely on DOM structure/CSS layout of
rich text
This commit is contained in:
Alasdair Smith 2018-03-29 17:11:17 +01:00
parent 672305c9c2
commit b417516c7f

View file

@ -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()
}
}
}