Skip to content

Commit

Permalink
test: FallbackLazyImage test 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 committed Jun 20, 2024
1 parent 7d875e1 commit d8bf833
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ describe('FallbackLazyImage', () => {
img1.dispatchEvent(new Event('load'));
});

expect(screen.queryByText('Fallback')).not.toBeInTheDocument();
expect(onLoadMockFn).toBeCalled();
await waitFor(() => {
expect(screen.queryByText('Fallback')).not.toBeInTheDocument();
expect(onLoadMockFn).toBeCalled();
});
});
});

0 comments on commit d8bf833

Please sign in to comment.