From 7538ec7d36a89a0e3cf659e98018857becbf295f Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Sat, 6 May 2017 08:16:13 -0500 Subject: [PATCH] test(throttle): fix race condition test --- src/throttle.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/throttle.spec.ts b/src/throttle.spec.ts index e9c39ea..a643008 100644 --- a/src/throttle.spec.ts +++ b/src/throttle.spec.ts @@ -54,7 +54,7 @@ describe('throttle', () => { setTimeout(() => { expect(myClass.value).to.equal(20); done(); - }, 11); + }, 20); }); it('should debounce the property getter', (done) => { @@ -77,7 +77,7 @@ describe('throttle', () => { setTimeout(() => { expect(myClass.value).to.equal(2); done(); - }, 11); + }, 20); }); it('should contain the cancel and flush methods', () => {