mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-25 08:18:24 -04:00
Added missing semicolons to js files
This commit is contained in:
1 parent
c9558be2d3
commit
1e0ccd72a2
5 files changed
+8
-10
No files matched your search
@@ -56,9 +56,7 @@ PreCommit:
|
||||
enabled: true
|
||||
on_warn: warn
|
||||
JsHint:
|
||||
problem_on_unmodified_line: warn
|
||||
enabled: true
|
||||
on_fail: warn
|
||||
exclude:
|
||||
- 'app/assets/**'
|
||||
- 'spec/javascripts/support/vendor/**'
|
||||
|
||||
@@ -31,10 +31,10 @@ This file draws the labels to the left of each bar.
|
||||
var barLabelTopEdge = 17;
|
||||
return i * barHeight * (barLabelSpread) + barLabelTopEdge;
|
||||
})
|
||||
.text(function(d){return d});
|
||||
.text(function(d){return d;});
|
||||
|
||||
};
|
||||
|
||||
growstuff.BarLabelGroup = BarLabelGroup;
|
||||
|
||||
}())
|
||||
}());
|
||||
@@ -26,7 +26,7 @@ to the display size of the svg
|
||||
|
||||
WidthScale.prototype.getMaxValue = function(){
|
||||
return d3.max(this._data.bars.map(function(bar) { return bar.value; }));
|
||||
}
|
||||
};
|
||||
|
||||
growstuff.WidthScale = WidthScale;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
});
|
||||
|
||||
it('draws a group', function(){
|
||||
expect($('g.bar')).toExist()
|
||||
expect($('g.bar')).toExist();
|
||||
});
|
||||
|
||||
it('draws 2 bars', function() {
|
||||
|
||||
@@ -20,22 +20,22 @@
|
||||
};
|
||||
subject = new BarLabelGroup(data);
|
||||
subject.render(d3.select('#jasmine_content').append('svg'));
|
||||
})
|
||||
});
|
||||
|
||||
it('draws a group for labels', function(){
|
||||
expect($('g.bar-label')).toExist()
|
||||
expect($('g.bar-label')).toExist();
|
||||
});
|
||||
|
||||
it('draws 2 bar labels', function(){
|
||||
expect($('g.bar-label text')).toHaveLength(2);
|
||||
})
|
||||
});
|
||||
|
||||
it ('has text for 2 bar labels', function(){
|
||||
//jquery jasmine appends text from all text elements
|
||||
// into one string
|
||||
expect($('g.bar-label text')).toHaveText('ShadeHalf Shade');
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user