From 1a37e8fe48abe25071696ce608c652938316a307 Mon Sep 17 00:00:00 2001 From: Malte Wessel <> Date: Thu, 19 Oct 2017 10:35:47 +0200 Subject: [PATCH] fixed test --- test/Scrollbars/rendering.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/Scrollbars/rendering.js b/test/Scrollbars/rendering.js index c1f436c8..1d8d0823 100644 --- a/test/Scrollbars/rendering.js +++ b/test/Scrollbars/rendering.js @@ -92,10 +92,12 @@ export default function createTests(scrollbarWidth) {
), 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); }); });