Skip to content

Commit 33e5612

Browse files
committed
Merge branch 'master' into webpack-2
2 parents 431a4c7 + edcda29 commit 33e5612

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎test/Stats.test.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,26 @@ describe("Stats", function() {
6666
describe("Error Handling", function(){
6767
describe("does have", function(){
6868
it("hasErrors", function() {
69-
mockStats = new Stats({errors:['firstError'],hash:'1234'});
69+
var mockStats = new Stats({errors:['firstError'],hash:'1234'});
7070
mockStats.hasErrors().should.be.ok;
7171
});
7272
it("hasWarnings", function() {
73-
mockStats = new Stats({warnings:['firstError'],hash:'1234'});
73+
var mockStats = new Stats({warnings:['firstError'],hash:'1234'});
7474
mockStats.hasWarnings().should.be.ok;
7575
});
7676
});
7777
describe("does not have", function(){
7878
it("hasErrors", function() {
79-
mockStats = new Stats({errors:[],hash:'1234'});
79+
var mockStats = new Stats({errors:[],hash:'1234'});
8080
mockStats.hasErrors().should.not.be.ok;
8181
});
8282
it("hasWarnings", function() {
83-
mockStats = new Stats({warnings:[],hash:'1234'});
83+
var mockStats = new Stats({warnings:[],hash:'1234'});
8484
mockStats.hasWarnings().should.not.be.ok;
8585
});
8686
});
8787
it("formatError handles string errors", function(){
88-
mockStats = new Stats({
88+
var mockStats = new Stats({
8989
errors:['firstError'],
9090
warnings:[],
9191
assets:[],
@@ -97,7 +97,7 @@ describe("Stats", function() {
9797
getPublicPath:function(){return 'path';}
9898
}
9999
});
100-
obj = mockStats.toJson();
100+
var obj = mockStats.toJson();
101101
obj.errors[0].should.be.equal('firstError');
102102
});
103103
});

0 commit comments

Comments
 (0)