mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
remove magic number from vislib resize test
This commit is contained in:
parent
5eb0096aea
commit
f6b60e973f
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue