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:
Kevin Ansfield 2020-06-23 21:04:46 +01:00
parent 88bd3c571a
commit 9348858bbe
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -11,7 +11,7 @@ function stubSettings(server, labs, validSave = true) {
let settings = [
{
id: '1',
type: 'blog',
type: 'labs',
key: 'labs',
value: JSON.stringify(labs)
}