0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Removed apiVersions from test urlUtils

refs: https://github.com/TryGhost/Toolbox/issues/229

- These properties were removed from urlUtils in 5.0 and no longer do anything
This commit is contained in:
Hannah Wolfe 2022-09-09 10:59:17 +01:00
parent 08b099e527
commit b0234dd58e
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037
2 changed files with 3 additions and 13 deletions

View file

@ -20,14 +20,6 @@ function createUrlUtilsMock() {
getSubdir: configUtils.config.getSubdir,
getSiteUrl: configUtils.config.getSiteUrl,
getAdminUrl: configUtils.config.getAdminUrl,
apiVersions: {
all: ['canary'],
canary: {
admin: 'admin',
content: 'content'
}
},
defaultApiVersion: 'canary',
slugs: ['ghost', 'rss', 'amp'],
redirectCacheMaxAge: 31536000,
baseApiPath: '/ghost/api'

View file

@ -12,8 +12,6 @@ const getInstance = (options) => {
getSubdir: config.getSubdir,
getSiteUrl: config.getSiteUrl,
getAdminUrl: config.getAdminUrl,
apiVersions: options.apiVersions,
defaultApiVersion: 'canary',
slugs: options.slugs,
redirectCacheMaxAge: options.redirectCacheMaxAge,
baseApiPath: '/ghost/api'