mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 06:37:33 +00:00
chore(lint): keep the fixes within the lint ratchets
No promise in a condition, sequential awaits through a reduce instead of a loop, no non-null assertions or any in the new tests, an awaited act, one options object for a stop edit and a handled rejection for the offline copy.
This commit is contained in:
@@ -208,7 +208,9 @@ describe('NativeImportSheet', () => {
|
||||
answer = () => resolve([]);
|
||||
})
|
||||
);
|
||||
act(() => void useTripAddonsStore.getState().load(1));
|
||||
await act(async () => {
|
||||
void useTripAddonsStore.getState().load(1);
|
||||
});
|
||||
expect(screen.getByRole('button', { name: /Japan/ })).toBeInTheDocument();
|
||||
await act(async () => answer());
|
||||
expect(screen.getByRole('button', { name: /Japan/ })).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user