Skip to content

Commit edcda29

Browse files
committed
added missing vars
1 parent 5cd6e7d commit edcda29

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Stats.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,26 @@ describe("Stats", function() {
6363
describe("Error Handling", function(){
6464
describe("does have", function(){
6565
it("hasErrors", function() {
66-
mockStats = new Stats({errors:['firstError'],hash:'1234'});
66+
var mockStats = new Stats({errors:['firstError'],hash:'1234'});
6767
mockStats.hasErrors().should.be.ok;
6868
});
6969
it("hasWarnings", function() {
70-
mockStats = new Stats({warnings:['firstError'],hash:'1234'});
70+
var mockStats = new Stats({warnings:['firstError'],hash:'1234'});
7171
mockStats.hasWarnings().should.be.ok;
7272
});
7373
});
7474
describe("does not have", function(){
7575
it("hasErrors", function() {
76-
mockStats = new Stats({errors:[],hash:'1234'});
76+
var mockStats = new Stats({errors:[],hash:'1234'});
7777
mockStats.hasErrors().should.not.be.ok;
7878
});
7979
it("hasWarnings", function() {
80-
mockStats = new Stats({warnings:[],hash:'1234'});
80+
var mockStats = new Stats({warnings:[],hash:'1234'});
8181
mockStats.hasWarnings().should.not.be.ok;
8282
});
8383
});
8484
it("formatError handles string errors", function(){
85-
mockStats = new Stats({
85+
var mockStats = new Stats({
8686
errors:['firstError'],
8787
warnings:[],
8888
assets:[],
@@ -94,7 +94,7 @@ describe("Stats", function() {
9494
getPublicPath:function(){return 'path';}
9595
}
9696
});
97-
obj = mockStats.toJson();
97+
var obj = mockStats.toJson();
9898
obj.errors[0].should.be.equal('firstError');
9999
});
100100
});

0 commit comments

Comments
 (0)