mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Renamed versioned API URL variable
refs https://github.com/TryGhost/Toolbox/issues/169 - Improved code readability, otherwise it could be confusing what the default API URL means
This commit is contained in:
parent
1dd47c4191
commit
cbba5471a2
1 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@ const apiKeyAuth = require('../../../../../../core/server/services/auth/api-key'
|
||||||
const models = require('../../../../../../core/server/models');
|
const models = require('../../../../../../core/server/models');
|
||||||
|
|
||||||
describe('Admin API Key Auth', function () {
|
describe('Admin API Key Auth', function () {
|
||||||
const ADMIN_API_URL = '/ghost/api/v4/admin/';
|
const ADMIN_API_URL_VERSIONED = '/ghost/api/v4/admin/';
|
||||||
const ADMIN_API_URL_NON_VERSIONED = '/ghost/api/admin/';
|
const ADMIN_API_URL_NON_VERSIONED = '/ghost/api/admin/';
|
||||||
|
|
||||||
before(models.init);
|
before(models.init);
|
||||||
|
@ -43,7 +43,7 @@ describe('Admin API Key Auth', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
originalUrl: ADMIN_API_URL,
|
originalUrl: ADMIN_API_URL_VERSIONED,
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Ghost ${token}`
|
authorization: `Ghost ${token}`
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ describe('Admin API Key Auth', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
originalUrl: `${ADMIN_API_URL}session/`,
|
originalUrl: `${ADMIN_API_URL_VERSIONED}session/`,
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Ghost ${token}`
|
authorization: `Ghost ${token}`
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ describe('Admin API Key Auth', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
originalUrl: ADMIN_API_URL,
|
originalUrl: ADMIN_API_URL_VERSIONED,
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Ghost ${token}`
|
authorization: `Ghost ${token}`
|
||||||
}
|
}
|
||||||
|
@ -210,7 +210,7 @@ describe('Admin API Key Auth', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
originalUrl: ADMIN_API_URL,
|
originalUrl: ADMIN_API_URL_VERSIONED,
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Ghost ${token}`
|
authorization: `Ghost ${token}`
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,7 @@ describe('Admin API Key Auth', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
originalUrl: ADMIN_API_URL,
|
originalUrl: ADMIN_API_URL_VERSIONED,
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Ghost ${token}`
|
authorization: `Ghost ${token}`
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ describe('Admin API Key Auth', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
originalUrl: ADMIN_API_URL,
|
originalUrl: ADMIN_API_URL_VERSIONED,
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Ghost ${token}`
|
authorization: `Ghost ${token}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue