Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanVss committed Nov 3, 2022
1 parent 5c85af0 commit a786d0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,16 @@ describe('<DashboardCreateAddress/>', () => {
});
const client = createQueryClientWithUser(true);

let container: HTMLElement | undefined;
await act(async () => {
container = render(
render(
<QueryClientProvider client={client}>
<IntlProvider locale="en">
<SessionProvider>
<DashboardTest initialRoute={DashboardPaths.PREFERENCES_ADDRESS_CREATION} />
</SessionProvider>
</IntlProvider>
</QueryClientProvider>,
).container;
);
});

// We are on the expected route.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,17 +336,17 @@ describe('<DashAddressesManagement/>', () => {
status: 500,
body: 'Bad request',
});
let container: HTMLElement | undefined;

await act(async () => {
container = render(
render(
<QueryClientProvider client={client}>
<IntlProvider locale="en">
<SessionProvider>
<DashboardTest initialRoute={DashboardPaths.PREFERENCES} />
</SessionProvider>
</IntlProvider>
</QueryClientProvider>,
).container;
);
});

await screen.findByText('An error occurred while fetching addresses. Please retry later.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,17 +428,17 @@ describe('<DashboardCreditCardsManagement/>', () => {
status: 500,
body: 'Bad request',
});
let container: HTMLElement | undefined;

await act(async () => {
container = render(
render(
<QueryClientProvider client={client}>
<IntlProvider locale="en">
<SessionProvider>
<DashboardTest initialRoute={DashboardPaths.PREFERENCES} />
</SessionProvider>
</IntlProvider>
</QueryClientProvider>,
).container;
);
});

await screen.findByText('An error occurred: Internal Server Error. Please retry later.');
Expand Down

0 comments on commit a786d0e

Please sign in to comment.