mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Updated copy for accept-version errors
- Copy has been updated and approved now :)
This commit is contained in:
parent
e5d097fbae
commit
9e6f5c5194
2 changed files with 12 additions and 12 deletions
|
@ -9,14 +9,14 @@ const messages = {
|
|||
pageNotFound: 'Page not found',
|
||||
resourceNotFound: 'Resource not found',
|
||||
methodNotAcceptableVersionAhead: {
|
||||
message: 'Request not acceptable for provided Accept-Version header.',
|
||||
context: 'Provided client version {acceptVersion} is ahead of current Ghost instance version {ghostVersion}.',
|
||||
help: 'Upgrade your Ghost instance.'
|
||||
message: 'Request could not be served, the endpoint was not found.',
|
||||
context: 'Provided client accept-version {acceptVersion} is ahead of current Ghost version {ghostVersion}.',
|
||||
help: 'Try upgrading your Ghost install.'
|
||||
},
|
||||
methodNotAcceptableVersionBehind: {
|
||||
message: 'Request not acceptable for provided Accept-Version header.',
|
||||
context: 'Provided client version {acceptVersion} is outdated and is behind current Ghost version {ghostVersion}.',
|
||||
help: 'Upgrade your Ghost API client.'
|
||||
message: 'Request could not be served, the endpoint was not found.',
|
||||
context: 'Provided client accept-version {acceptVersion} is behind current Ghost version {ghostVersion}.',
|
||||
help: 'Try upgrading your Ghost API client.'
|
||||
},
|
||||
actions: {
|
||||
images: {
|
||||
|
|
|
@ -138,9 +138,9 @@ describe('Resource Not Found', function () {
|
|||
|
||||
resourceNotFound(req, res, (error) => {
|
||||
should.equal(error.statusCode, 406);
|
||||
should.equal(error.message, 'Request not acceptable for provided Accept-Version header.');
|
||||
should.equal(error.context, 'Provided client version v3.9 is outdated and is behind current Ghost version v4.3.');
|
||||
should.equal(error.help, 'Upgrade your Ghost API client.');
|
||||
should.equal(error.message, 'Request could not be served, the endpoint was not found.');
|
||||
should.equal(error.context, 'Provided client accept-version v3.9 is behind current Ghost version v4.3.');
|
||||
should.equal(error.help, 'Try upgrading your Ghost API client.');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@ -160,9 +160,9 @@ describe('Resource Not Found', function () {
|
|||
|
||||
resourceNotFound(req, res, (error) => {
|
||||
should.equal(error.statusCode, 406);
|
||||
should.equal(error.message, 'Request not acceptable for provided Accept-Version header.');
|
||||
should.equal(error.context, 'Provided client version v4.8 is ahead of current Ghost instance version v4.3.');
|
||||
should.equal(error.help, 'Upgrade your Ghost instance.');
|
||||
should.equal(error.message, 'Request could not be served, the endpoint was not found.');
|
||||
should.equal(error.context, 'Provided client accept-version v4.8 is ahead of current Ghost version v4.3.');
|
||||
should.equal(error.help, 'Try upgrading your Ghost install.');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue