From 360e8d08d492451f62c2ea4a9f1d0b638ab5f954 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 7 Jul 2021 19:18:43 +0400 Subject: [PATCH] Fixed failing tests refs https://github.com/TryGhost/Team/issues/856 refs https://github.com/TryGhost/Ghost/commit/dfe1089ee2ce846fb74b6651582e5a3a76dbdec5 - Module export order matters --- core/server/api/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/server/api/index.js b/core/server/api/index.js index 1c7c373dcd..c253545055 100644 --- a/core/server/api/index.js +++ b/core/server/api/index.js @@ -1,5 +1,3 @@ -module.exports.shared = require('./shared'); - const defaultAPI = require('./canary'); module.exports = defaultAPI; @@ -8,3 +6,4 @@ module.exports.v4 = defaultAPI; module.exports.v3 = require('./v3'); module.exports.v2 = require('./v2'); +module.exports.shared = require('./shared');