Skip to content

Commit

Permalink
Merge pull request #63 from Dignifiedquire/13
Browse files Browse the repository at this point in the history
Upgrade to use the new public karma api for refreshing files
  • Loading branch information
sokra committed Jul 31, 2015
2 parents d4a6e2e + 29fb1d8 commit 5760256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function Plugin(
/* config.basePath */basePath,
/* config.files */files,
/* config.frameworks */frameworks,
fileList,
customFileHandlers,
emitter) {
webpackOptions = _.clone(webpackOptions) || {};
Expand Down Expand Up @@ -41,7 +40,7 @@ function Plugin(
webpackOptions.output.chunkFilename = "[id].chunk.js";
});

this.fileList = fileList;
this.emitter = emitter;
this.wrapMocha = frameworks.indexOf('mocha') >= 0 && includeIndex;
this.optionsCount = applyOptions.length;
this.files = [];
Expand Down Expand Up @@ -106,7 +105,7 @@ function Plugin(

Plugin.prototype.notifyKarmaAboutChanges = function() {
// Force a rebuild
this.fileList.refresh();
this.emitter.refreshFiles();
};

Plugin.prototype.addFile = function(entry) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"webpack-dev-middleware": "^1.0.11"
},
"devDependencies": {
"karma": ">=0.12 < 1",
"karma": ">=0.13.2 < 1",
"karma-mocha": "~0.1.9",
"karma-chrome-launcher": "~0.1.5",
"karma-spec-reporter": "~0.0.16",
Expand Down

0 comments on commit 5760256

Please sign in to comment.