From 260ffbe789f05d29416aff949c61737edd9c4d5a Mon Sep 17 00:00:00 2001 From: Andrew Kirwin Date: Tue, 12 Nov 2024 10:11:04 +0000 Subject: [PATCH] remove use of defer --- tests/integration/components/infinite-scroller-test.gjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/components/infinite-scroller-test.gjs b/tests/integration/components/infinite-scroller-test.gjs index d4a2266..1122fcc 100644 --- a/tests/integration/components/infinite-scroller-test.gjs +++ b/tests/integration/components/infinite-scroller-test.gjs @@ -1,6 +1,5 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'dummy/tests/helpers'; -import { defer } from 'rsvp'; import generateThings from 'dummy/utils/generate-things'; import { scrollToPercentage } from '@zestia/ember-simple-infinite-scroller/test-support/helpers'; import InfiniteScroller from '@zestia/ember-simple-infinite-scroller/components/infinite-scroller'; @@ -34,7 +33,7 @@ module('infinite-scroller', function (hooks) { handleLoadMore = (direction) => { assert.step(`load more: ${direction}`); - willLoad = defer(); + willLoad = Promise.withResolvers(); return willLoad.promise; }; });