Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Wessel committed Oct 19, 2017
1 parent 4f0c98b commit 1a37e8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/Scrollbars/rendering.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ export default function createTests(scrollbarWidth) {
<div style={{ width: 200, height: 200 }}/>
</Scrollbars>
), node, function callback() {
const width = `-${scrollbarWidth}px`;
expect(this.view.style.marginRight).toEqual(width);
expect(this.view.style.marginBottom).toEqual(width);
done();
setTimeout(() => {
const width = `-${scrollbarWidth}px`;
expect(this.view.style.marginRight).toEqual(width);
expect(this.view.style.marginBottom).toEqual(width);
done();
}, 100);
});
});

Expand Down

0 comments on commit 1a37e8f

Please sign in to comment.