Skip to content

Commit

Permalink
remove use of defer
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Nov 12, 2024
1 parent 4acb7c3 commit 260ffbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/components/infinite-scroller-test.gjs
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -34,7 +33,7 @@ module('infinite-scroller', function (hooks) {

handleLoadMore = (direction) => {
assert.step(`load more: ${direction}`);
willLoad = defer();
willLoad = Promise.withResolvers();
return willLoad.promise;
};
});
Expand Down

0 comments on commit 260ffbe

Please sign in to comment.