Skip to content

Commit 1a37e8f

Browse files
author
Malte Wessel
committed
fixed test
1 parent 4f0c98b commit 1a37e8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/Scrollbars/rendering.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ export default function createTests(scrollbarWidth) {
9292
<div style={{ width: 200, height: 200 }}/>
9393
</Scrollbars>
9494
), node, function callback() {
95-
const width = `-${scrollbarWidth}px`;
96-
expect(this.view.style.marginRight).toEqual(width);
97-
expect(this.view.style.marginBottom).toEqual(width);
98-
done();
95+
setTimeout(() => {
96+
const width = `-${scrollbarWidth}px`;
97+
expect(this.view.style.marginRight).toEqual(width);
98+
expect(this.view.style.marginBottom).toEqual(width);
99+
done();
100+
}, 100);
99101
});
100102
});
101103

0 commit comments

Comments
 (0)