Skip to content

Commit

Permalink
Merge pull request #2135 from openzim/fix-ci
Browse files Browse the repository at this point in the history
Update error message to match remote result
  • Loading branch information
audiodude authored Jan 23, 2025
2 parents f509520 + 2f70a64 commit fc2af69
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/unit/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,17 @@ describe('Utils', () => {
status: 403,
responseType: undefined,
data: {
type: 'https://mediawiki.org/wiki/HyperSwitch/errors/access_denied#revision',
title: 'Access to resource denied',
errorKey: 'rest-permission-denied-revision',
httpCode: 403,
httpReason: 'Forbidden',
messageTranslations: {
en: "User doesn't have access to the requested revision (4225685).",
},
type: 'MediaWikiError/Forbidden',
title: 'rest-permission-denied-revision',
method: 'get',
detail: 'Access is restricted for revision 4225685',
uri: '/en.wikibooks.org/v1/page/html/World_History%2FThe_Rise_of_Dictatorship_and_Totalitarianism%2FQuick_Quiz/4225685',
detail: "User doesn't have access to the requested revision (4225685).",
uri: '/w/rest.php/v1/revision/4225685/html',
},
}
try {
Expand Down

0 comments on commit fc2af69

Please sign in to comment.