install karma-html2js-preprocessor

jh-changes
Shin'ya Ueoka 7 years ago
parent 55147feb8e
commit d4d54ca496
  1. 9
      karma.conf.js
  2. 6
      package-lock.json
  3. 1
      package.json

@ -1,13 +1,18 @@
module.exports = function (config) { module.exports = function (config) {
var webpackConfig = require('./webpack.config.js'); var webpackConfig = require('./webpack.config.js');
config.set({ config.set({
basePath: '', basePath: '',
frameworks: ['mocha'], frameworks: ['mocha'],
files: ['test/**/*\.test\.js'], files: [
'test/**/*.test.js',
'test/**/*.html'
],
preprocessors: { preprocessors: {
'test/**/*\.test\.js': [ 'webpack' ] 'test/**/*.test.js': [ 'webpack' ],
'test/**/*.html': ['html2js']
}, },
reporters: ['progress'], reporters: ['progress'],

6
package-lock.json generated

@ -3168,6 +3168,12 @@
"integrity": "sha1-zlj0fCATqIFW1VpdYTN8CZz1u1E=", "integrity": "sha1-zlj0fCATqIFW1VpdYTN8CZz1u1E=",
"dev": true "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": { "karma-mocha": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-1.3.0.tgz", "resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-1.3.0.tgz",

@ -26,6 +26,7 @@
"eslint": "^4.4.1", "eslint": "^4.4.1",
"karma": "^1.7.0", "karma": "^1.7.0",
"karma-firefox-launcher": "^1.0.1", "karma-firefox-launcher": "^1.0.1",
"karma-html2js-preprocessor": "^1.1.0",
"karma-mocha": "^1.3.0", "karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.3", "karma-mocha-reporter": "^2.2.3",
"karma-sourcemap-loader": "^0.3.7", "karma-sourcemap-loader": "^0.3.7",