From 56bf190b060a4a2e691e32fbbd176afd7253913b Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Sun, 15 Dec 2024 23:03:43 +0530 Subject: [PATCH] fixup! feat: Adding human readable 403 error access restricted --- .../page-alerts/PageAlerts.test.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(); - }); });