diff --git a/test/regression/mock-express-style/api-vs-frontend.test.js b/test/regression/mock-express-style/api-vs-frontend.test.js index 1a464432ab..ca7046413d 100644 --- a/test/regression/mock-express-style/api-vs-frontend.test.js +++ b/test/regression/mock-express-style/api-vs-frontend.test.js @@ -33,7 +33,6 @@ describe('Integration - Web - Site canary', function () { }); beforeEach(function () { - sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary'); sinon.stub(themeEngine.getActive(), 'config').withArgs('posts_per_page').returns(2); const postsAPI = require('../../../core/server/api/canary/posts-public'); postSpy = sinon.spy(postsAPI.browse, 'query'); diff --git a/test/regression/mock-express-style/parent-app-vhosts.test.js b/test/regression/mock-express-style/parent-app-vhosts.test.js index e30aef336e..f5c1a8248b 100644 --- a/test/regression/mock-express-style/parent-app-vhosts.test.js +++ b/test/regression/mock-express-style/parent-app-vhosts.test.js @@ -137,7 +137,6 @@ describe('Integration - Web - vhosts', function () { app = await localUtils.initGhost({backend: true}); - sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary'); sinon.stub(themeEngine.getActive(), 'config').withArgs('posts_per_page').returns(2); }); @@ -289,7 +288,6 @@ describe('Integration - Web - vhosts', function () { configUtils.set('admin:url', 'https://admin.example.com'); configUtils.set('admin:redirects', false); - sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary'); sinon.stub(themeEngine.getActive(), 'config').withArgs('posts_per_page').returns(2); app = await localUtils.initGhost({backend: true}); @@ -329,7 +327,6 @@ describe('Integration - Web - vhosts', function () { configUtils.set('url', 'http://example.com'); configUtils.set('admin:url', 'https://example.com'); - sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary'); sinon.stub(themeEngine.getActive(), 'config').withArgs('posts_per_page').returns(2); app = await localUtils.initGhost({backend: true}); diff --git a/test/regression/site/dynamic_routing.test.js b/test/regression/site/dynamic_routing.test.js index d2b7ff4e93..0598b68d7b 100644 --- a/test/regression/site/dynamic_routing.test.js +++ b/test/regression/site/dynamic_routing.test.js @@ -396,7 +396,7 @@ describe('Dynamic Routing', function () { it('should redirect to editor', function (done) { request.get('/author/ghost-owner/edit/') - .expect('Location', 'http://127.0.0.1:2369/ghost/#/staff/ghost-owner/') + .expect('Location', 'http://127.0.0.1:2369/ghost/#/settings/staff/ghost-owner/') .expect('Cache-Control', testUtils.cacheRules.public) .expect(302) .end(doEnd(done)); diff --git a/test/utils/fixtures/themes/casper/package.json b/test/utils/fixtures/themes/casper/package.json index c11b0aa023..56a51a89cb 100644 --- a/test/utils/fixtures/themes/casper/package.json +++ b/test/utils/fixtures/themes/casper/package.json @@ -4,8 +4,7 @@ "demo": "https://demo.ghost.io", "version": "2.4.2", "engines": { - "ghost": ">=2.0.0", - "ghost-api": "v2" + "ghost-api": "canary" }, "license": "MIT", "screenshots": { diff --git a/test/utils/fixtures/themes/locale-theme/package.json b/test/utils/fixtures/themes/locale-theme/package.json index 8bbbc6672d..82e991fcd3 100644 --- a/test/utils/fixtures/themes/locale-theme/package.json +++ b/test/utils/fixtures/themes/locale-theme/package.json @@ -3,7 +3,7 @@ "description": "A fake theme for testing locales.", "version": "1.0.0", "engines": { - "ghost-api": "v4" + "ghost-api": "canary" }, "license": "MIT", "config": { diff --git a/test/utils/fixtures/themes/members-test-theme/package.json b/test/utils/fixtures/themes/members-test-theme/package.json index 4683b73fbd..17e69f7434 100644 --- a/test/utils/fixtures/themes/members-test-theme/package.json +++ b/test/utils/fixtures/themes/members-test-theme/package.json @@ -3,7 +3,7 @@ "description": "A minimal theme for testing members behaviour", "version": "1.0.0", "engines": { - "ghost-api": "v4" + "ghost-api": "canary" }, "license": "MIT", "config": { diff --git a/test/utils/fixtures/themes/test-theme/package.json b/test/utils/fixtures/themes/test-theme/package.json index de7f2a528d..e751c4e378 100644 --- a/test/utils/fixtures/themes/test-theme/package.json +++ b/test/utils/fixtures/themes/test-theme/package.json @@ -4,8 +4,7 @@ "demo": "https://demo.ghost.io", "version": "2.4.2", "engines": { - "ghost": ">=2.0.0", - "ghost-api": "v2" + "ghost-api": "canary" }, "license": "MIT", "screenshots": {