0
Fork 0
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:
Ronald Langeveld 2024-09-12 18:18:57 +09:00 committed by GitHub
parent 2fc6634573
commit 7d86c2ce9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 4 deletions

View file

@ -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'
};

View file

@ -16,6 +16,7 @@ Object {
"facebook": "ghost",
"firstpromoter_account": null,
"icon": null,
"labs": Any<Object>,
"lang": "en",
"locale": "en",
"logo": null,

View file

@ -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 () {

View file

@ -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,

View file

@ -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
}
};