aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--karma.conf.js9
-rw-r--r--package-lock.json6
-rw-r--r--package.json1
3 files changed, 14 insertions, 2 deletions
diff --git a/karma.conf.js b/karma.conf.js
index 539fb3a..859cee0 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -1,13 +1,18 @@
module.exports = function (config) {
+
var webpackConfig = require('./webpack.config.js');
config.set({
basePath: '',
frameworks: ['mocha'],
- files: ['test/**/*\.test\.js'],
+ files: [
+ 'test/**/*.test.js',
+ 'test/**/*.html'
+ ],
preprocessors: {
- 'test/**/*\.test\.js': [ 'webpack' ]
+ 'test/**/*.test.js': [ 'webpack' ],
+ 'test/**/*.html': ['html2js']
},
reporters: ['progress'],
diff --git a/package-lock.json b/package-lock.json
index 37524a7..c91d079 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3168,6 +3168,12 @@
"integrity": "sha1-zlj0fCATqIFW1VpdYTN8CZz1u1E=",
"dev": true
},
+ "karma-html2js-preprocessor": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/karma-html2js-preprocessor/-/karma-html2js-preprocessor-1.1.0.tgz",
+ "integrity": "sha1-/Ant8Eu+K7bu6boZaPgmtziAIL0=",
+ "dev": true
+ },
"karma-mocha": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-1.3.0.tgz",
diff --git a/package.json b/package.json
index 2e38ee5..c9c5425 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"eslint": "^4.4.1",
"karma": "^1.7.0",
"karma-firefox-launcher": "^1.0.1",
+ "karma-html2js-preprocessor": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.3",
"karma-sourcemap-loader": "^0.3.7",