mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
parent
95b5fb1c81
commit
cf1e4aa593
4 changed files with 16 additions and 4 deletions
|
@ -83,7 +83,7 @@
|
|||
"defaultValue" : "tryghost"
|
||||
},
|
||||
"labs": {
|
||||
"defaultValue": "{\"publicAPI\": true}"
|
||||
"defaultValue": "{}"
|
||||
},
|
||||
"navigation": {
|
||||
"defaultValue": "[{\"label\":\"Home\", \"url\":\"/\"},{\"label\":\"Tag\", \"url\":\"/tag/getting-started/\"}, {\"label\":\"Author\", \"url\":\"/author/ghost/\"},{\"label\":\"Help\", \"url\":\"https://help.ghost.org\"}]"
|
||||
|
|
|
@ -42,7 +42,6 @@ describe('Configuration API', function () {
|
|||
props.blogUrl.should.eql('http://127.0.0.1:2369/');
|
||||
|
||||
props.useGravatar.should.eql(false);
|
||||
props.publicAPI.should.eql(true);
|
||||
props.clientId.should.eql('ghost-admin');
|
||||
props.clientSecret.should.eql('not_available');
|
||||
|
||||
|
|
|
@ -23,7 +23,21 @@ describe('Public API', function () {
|
|||
})
|
||||
.then(function () {
|
||||
return localUtils.doAuth(request, 'users:no-owner', 'user:inactive', 'posts', 'tags:extra', 'client:trusted-domain');
|
||||
});
|
||||
})
|
||||
.then(function (token) {
|
||||
return request.put(localUtils.API.getApiQuery('settings/'))
|
||||
.set('Authorization', 'Bearer ' + token)
|
||||
.send({
|
||||
settings: [{
|
||||
key: 'labs',
|
||||
value: {publicAPI: true}
|
||||
}]
|
||||
})
|
||||
.expect('Content-Type', /json/)
|
||||
.expect('Cache-Control', testUtils.cacheRules.private)
|
||||
.expect(200)
|
||||
.then(() => {});
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
|
|
|
@ -37,7 +37,6 @@ describe('Configuration API', function () {
|
|||
props.blogUrl.should.eql('http://127.0.0.1:2369/');
|
||||
|
||||
props.useGravatar.should.eql(false);
|
||||
props.publicAPI.should.eql(true);
|
||||
props.clientId.should.eql('ghost-admin');
|
||||
props.clientSecret.should.eql('not_available');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue