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 16, 2024
1 parent 84a883c commit 5f4f257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/course-outline/page-alerts/PageAlerts.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ describe('<PageAlerts />', () => {
const { queryByText } = renderComponent({
...pageAlertsData,
errors: {
outlineIndexApi: { data: 'some error', status: 403, type: API_ERROR_TYPES.serverError },
outlineIndexApi: { data: 'some error', status: 403, type: API_ERROR_TYPES.serverError, dismissable: true },

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

View workflow job for this annotation

GitHub Actions / tests

Expected a line break after this opening brace

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

View workflow job for this annotation

GitHub Actions / tests

Expected a line break before this closing brace
},
});
expect(queryByText(messages.forbiddenAlert.defaultMessage)).toBeInTheDocument();
Expand All @@ -234,7 +234,7 @@ describe('<PageAlerts />', () => {
const { queryByText } = renderComponent({
...pageAlertsData,
errors: {
outlineIndexApi: { data: 'some error', status: 500, type: API_ERROR_TYPES.serverError },
outlineIndexApi: { data: 'some error', status: 500, type: API_ERROR_TYPES.serverError, dismissable: true },

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

View workflow job for this annotation

GitHub Actions / tests

Expected a line break after this opening brace

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

View workflow job for this annotation

GitHub Actions / tests

Expected a line break before this closing brace
},
});
expect(queryByText('some error')).toBeInTheDocument();
Expand Down

0 comments on commit 5f4f257

Please sign in to comment.