karma-riot
karma-riot copied to clipboard
Broken example
You have to include expect.js
in the karma files to expose it as global.
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'riot'],
plugins: [
'karma-mocha',
'karma-mocha-reporter',
'karma-phantomjs-launcher',
'karma-riot'
],
files: [
'**/*.tag',
'test/**/*.js',
'node_modules/expect.js/index.js'
],
preprocessors: {
'**/*.tag': ['riot']
},
browsers: ['PhantomJS'],
reporters: ['mocha']
})
}