diff --git a/src/course-outline/page-alerts/PageAlerts.test.jsx b/src/course-outline/page-alerts/PageAlerts.test.jsx index b8bb04821..69f80ac5a 100644 --- a/src/course-outline/page-alerts/PageAlerts.test.jsx +++ b/src/course-outline/page-alerts/PageAlerts.test.jsx @@ -230,13 +230,13 @@ describe('', () => { expect(queryByText(messages.forbiddenAlertBody.defaultMessage)).toBeInTheDocument(); }); -it('renders api error alerts when status is not 403', async () => { - const { queryByText } = renderComponent({ - ...pageAlertsData, - errors: { - outlineIndexApi: { data: 'some error', status: 500, type: API_ERROR_TYPES.serverError }, - }, + it('renders api error alerts when status is not 403', async () => { + const { queryByText } = renderComponent({ + ...pageAlertsData, + errors: { + outlineIndexApi: { data: 'some error', status: 500, type: API_ERROR_TYPES.serverError }, + }, + }); + expect(queryByText('some error')).toBeInTheDocument(); }); - expect(queryByText('some error')).toBeInTheDocument(); - }); });