remove magic number from vislib resize test

This commit is contained in:
Joe Fleming 2014-09-19 15:37:49 -07:00
parent 5eb0096aea
commit f6b60e973f

View file

@ -111,10 +111,12 @@ define(function (require) {
describe('resize Method', function () {
it('should resize the chart', function () {
var width = 555;
vis.render(data);
$('.visualize').width(500);
$('.visualize').width(width);
vis.resize();
expect($('.chart').width()).to.be.lessThan(500);
expect($('.visualize').width()).to.be.lessThan(width);
});
});