Skip to content

Commit 452ef2a

Browse files
committed
fixed test case
1 parent 571505a commit 452ef2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/HotModuleReplacementPlugin.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ describe("HotModuleReplacementPlugin", function() {
1111
try { fs.mkdirSync(path.join(__dirname, "js")); } catch(e) {}
1212
try { fs.unlinkSync(recordsFile); } catch(e) {}
1313
var compiler = webpack({
14+
cache: false,
1415
entry: entryFile,
1516
recordsPath: recordsFile,
1617
output: {
@@ -33,6 +34,7 @@ describe("HotModuleReplacementPlugin", function() {
3334
compiler.run(function(err, stats) {
3435
if(err) throw err;
3536
var lastHash2 = stats.toJson().hash;
37+
lastHash2.should.not.be.eql(lastHash1);
3638
fs.writeFileSync(entryFile, "1", "utf-8");
3739
compiler.run(function(err, stats) {
3840
if(err) throw err;

0 commit comments

Comments
 (0)