From a5519703153505a82f163cdcf01100c082986098 Mon Sep 17 00:00:00 2001 From: Thibaut Patel Date: Mon, 22 Feb 2021 15:39:48 +0100 Subject: [PATCH] Updated the configuration to include v4 pointing to canary issue https://github.com/TryGhost/Team/issues/221 --- core/shared/config/overrides.json | 6 +++++- test/unit/services/themes/engines/create_spec.js | 14 +++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/core/shared/config/overrides.json b/core/shared/config/overrides.json index ebf0992b49..f292ef42dc 100644 --- a/core/shared/config/overrides.json +++ b/core/shared/config/overrides.json @@ -61,11 +61,15 @@ }, "api": { "versions": { - "all": ["v2", "v3", "canary"], + "all": ["v2", "v3", "v4", "canary"], "canary": { "admin": "canary/admin", "content": "canary/content" }, + "v4": { + "admin": "canary/admin", + "content": "canary/content" + }, "v3": { "admin": "v3/admin", "content": "v3/content" diff --git a/test/unit/services/themes/engines/create_spec.js b/test/unit/services/themes/engines/create_spec.js index 9dfb01dfe8..8ce86ea84e 100644 --- a/test/unit/services/themes/engines/create_spec.js +++ b/test/unit/services/themes/engines/create_spec.js @@ -131,7 +131,19 @@ describe('Themes: engines', function () { }); engines.should.eql({ - 'ghost-api': 'v3' + 'ghost-api': 'v4' + }); + }); + + it('v4', function () { + const engines = themeEngines.create({ + engines: { + 'ghost-api': 'v4' + } + }); + + engines.should.eql({ + 'ghost-api': 'v4' }); }); });