mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
Added missing renames of settings groups
refs https://github.com/TryGhost/Ghost/issues/10318, 6d83c30f01
- the mocked settings endpoint was not returning any settings created with the old `blog` key which broke tests
This commit is contained in:
parent
88bd3c571a
commit
9348858bbe
@ -27,7 +27,7 @@ export default function mockSettings(server) {
|
||||
if (db.settings.where({key}).length > 0) {
|
||||
db.settings.update({key}, newSetting);
|
||||
} else {
|
||||
newSetting.type = newSetting.type || 'blog';
|
||||
newSetting.type = newSetting.type || 'site';
|
||||
db.settings.insert(newSetting);
|
||||
}
|
||||
});
|
||||
|
@ -171,7 +171,7 @@ describe('Acceptance: Content', function () {
|
||||
|
||||
it('can navigate to custom views', async function () {
|
||||
this.server.create('setting', {
|
||||
type: 'blog',
|
||||
type: 'site',
|
||||
key: 'shared_views',
|
||||
value: JSON.stringify([{
|
||||
route: 'posts',
|
||||
|
@ -11,7 +11,7 @@ function stubSettings(server, labs, validSave = true) {
|
||||
let settings = [
|
||||
{
|
||||
id: '1',
|
||||
type: 'blog',
|
||||
type: 'labs',
|
||||
key: 'labs',
|
||||
value: JSON.stringify(labs)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user