Skip to content

Commit

Permalink
fixup! feat: Adding human readable 403 error access restricted
Browse files Browse the repository at this point in the history
  • Loading branch information
farhaanbukhsh committed Dec 15, 2024
1 parent c462755 commit 56bf190
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/course-outline/page-alerts/PageAlerts.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ describe('<PageAlerts />', () => {
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({

Check failure on line 234 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 4 spaces but found 6
...pageAlertsData,

Check failure on line 235 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 6 spaces but found 8
errors: {

Check failure on line 236 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 6 spaces but found 8
outlineIndexApi: { data: 'some error', status: 500, type: API_ERROR_TYPES.serverError },

Check failure on line 237 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 8 spaces but found 10
},

Check failure on line 238 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 6 spaces but found 8
});

Check failure on line 239 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 4 spaces but found 6
expect(queryByText('some error')).toBeInTheDocument();

Check failure on line 240 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 4 spaces but found 6
});

Check failure on line 241 in src/course-outline/page-alerts/PageAlerts.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 2 spaces but found 4
expect(queryByText('some error')).toBeInTheDocument();
});
});

0 comments on commit 56bf190

Please sign in to comment.