From b4214608fa69c49d190ec076894c7d8872c17b93 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 4 Mar 2019 18:14:51 -0500 Subject: [PATCH] fix tests for options.debounceRendering --- test/_util/helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/_util/helpers.js b/test/_util/helpers.js index 4200b938b3..1457e56919 100644 --- a/test/_util/helpers.js +++ b/test/_util/helpers.js @@ -20,8 +20,8 @@ export function setupScratch() { * @returns {() => void} */ export function setupRerender() { - Component.__test__previousDebounce = Component.debounce; - Component.debounce = cb => Component.__test__drainQueue = cb; + Component.__test__previousDebounce = options.debounceRendering; + options.debounceRendering = cb => Component.__test__drainQueue = cb; return () => Component.__test__drainQueue && Component.__test__drainQueue(); } @@ -55,7 +55,7 @@ export function teardown(scratch) { } if (typeof Component.__test__previousDebounce !== 'undefined') { - Component.debounce = Component.__test__previousDebounce; + options.debounceRendering = Component.__test__previousDebounce; delete Component.__test__previousDebounce; }