mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -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',
|
outbound_link_tagging: 'outbound_link_tagging',
|
||||||
default_email_address: 'default_email_address',
|
default_email_address: 'default_email_address',
|
||||||
support_email_address: 'support_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",
|
"facebook": "ghost",
|
||||||
"firstpromoter_account": null,
|
"firstpromoter_account": null,
|
||||||
"icon": null,
|
"icon": null,
|
||||||
|
"labs": Any<Object>,
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
"locale": "en",
|
"locale": "en",
|
||||||
"logo": null,
|
"logo": null,
|
||||||
|
|
|
@ -2,7 +2,8 @@ const {agentProvider, fixtureManager, matchers} = require('../../utils/e2e-frame
|
||||||
const {anyEtag, anyContentLength, anyContentVersion} = matchers;
|
const {anyEtag, anyContentLength, anyContentVersion} = matchers;
|
||||||
|
|
||||||
const settingsMatcher = {
|
const settingsMatcher = {
|
||||||
version: matchers.anyString
|
version: matchers.anyString,
|
||||||
|
labs: matchers.anyObject
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('Settings Content API', function () {
|
describe('Settings Content API', function () {
|
||||||
|
|
|
@ -1368,6 +1368,7 @@ Object {
|
||||||
"facebook": "ghost",
|
"facebook": "ghost",
|
||||||
"firstpromoter_account": null,
|
"firstpromoter_account": null,
|
||||||
"icon": null,
|
"icon": null,
|
||||||
|
"labs": Any<Object>,
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
"locale": "en",
|
"locale": "en",
|
||||||
"logo": null,
|
"logo": null,
|
||||||
|
@ -1471,6 +1472,7 @@ Object {
|
||||||
"facebook": "ghost",
|
"facebook": "ghost",
|
||||||
"firstpromoter_account": null,
|
"firstpromoter_account": null,
|
||||||
"icon": null,
|
"icon": null,
|
||||||
|
"labs": Any<Object>,
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
"locale": "en",
|
"locale": "en",
|
||||||
"logo": null,
|
"logo": null,
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
const {agentProvider, fixtureManager, matchers, regexes, mockManager} = require('../../utils/e2e-framework');
|
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 {anyMajorMinorVersion} = regexes;
|
||||||
|
|
||||||
const settingsMatcher = {
|
const settingsMatcher = {
|
||||||
settings: {
|
settings: {
|
||||||
version: anyString
|
version: anyString,
|
||||||
|
labs: anyObject
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue