mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added labs props to Content Settings API (#20965)
ref PLG-229 - Added Labs properties to the Content Settings API endpoint to be reachable in Portal and Comments UI app.
This commit is contained in:
parent
2fc6634573
commit
7d86c2ce9c
5 changed files with 10 additions and 4 deletions
|
@ -46,5 +46,6 @@ module.exports = {
|
|||
outbound_link_tagging: 'outbound_link_tagging',
|
||||
default_email_address: 'default_email_address',
|
||||
support_email_address: 'support_email_address',
|
||||
editor_default_email_recipients: 'editor_default_email_recipients'
|
||||
editor_default_email_recipients: 'editor_default_email_recipients',
|
||||
labs: 'labs'
|
||||
};
|
||||
|
|
|
@ -16,6 +16,7 @@ Object {
|
|||
"facebook": "ghost",
|
||||
"firstpromoter_account": null,
|
||||
"icon": null,
|
||||
"labs": Any<Object>,
|
||||
"lang": "en",
|
||||
"locale": "en",
|
||||
"logo": null,
|
||||
|
|
|
@ -2,7 +2,8 @@ const {agentProvider, fixtureManager, matchers} = require('../../utils/e2e-frame
|
|||
const {anyEtag, anyContentLength, anyContentVersion} = matchers;
|
||||
|
||||
const settingsMatcher = {
|
||||
version: matchers.anyString
|
||||
version: matchers.anyString,
|
||||
labs: matchers.anyObject
|
||||
};
|
||||
|
||||
describe('Settings Content API', function () {
|
||||
|
|
|
@ -1368,6 +1368,7 @@ Object {
|
|||
"facebook": "ghost",
|
||||
"firstpromoter_account": null,
|
||||
"icon": null,
|
||||
"labs": Any<Object>,
|
||||
"lang": "en",
|
||||
"locale": "en",
|
||||
"logo": null,
|
||||
|
@ -1471,6 +1472,7 @@ Object {
|
|||
"facebook": "ghost",
|
||||
"firstpromoter_account": null,
|
||||
"icon": null,
|
||||
"labs": Any<Object>,
|
||||
"lang": "en",
|
||||
"locale": "en",
|
||||
"logo": null,
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
const {agentProvider, fixtureManager, matchers, regexes, mockManager} = require('../../utils/e2e-framework');
|
||||
const {anyErrorId, stringMatching, anyObjectId, anyLocationFor, anyISODateTime, anyEtag, anyString, anyContentLength, anyContentVersion} = matchers;
|
||||
const {anyErrorId, stringMatching, anyObjectId, anyLocationFor, anyISODateTime, anyEtag, anyString, anyContentLength, anyContentVersion, anyObject} = matchers;
|
||||
const {anyMajorMinorVersion} = regexes;
|
||||
|
||||
const settingsMatcher = {
|
||||
settings: {
|
||||
version: anyString
|
||||
version: anyString,
|
||||
labs: anyObject
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue