Changed tenor config API key name
refs https://github.com/TryGhost/Team/issues/1237#issuecomment-981770688 - API key names for external services now follow a standard pattern - top-level key of the service name - public/private and read/write perms inside the name, eg. `publicReadOnlyApiKey` - updated test to match expected API key name
This commit is contained in:
parent
e6856f6ac6
commit
8cb748c580
@ -15,12 +15,12 @@ describe('Config API', function () {
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
configUtils.set('tenor:apiKey', undefined);
|
||||
configUtils.set('tenor:publicReadOnlyApiKey', undefined);
|
||||
});
|
||||
|
||||
it('can retrieve config and all expected properties', async function () {
|
||||
// set any non-default keys so we can be sure they're exposed
|
||||
configUtils.set('tenor:apiKey', 'TENOR_KEY');
|
||||
configUtils.set('tenor:publicReadOnlyApiKey', 'TENOR_KEY');
|
||||
|
||||
const res = await request
|
||||
.get(localUtils.API.getApiQuery('config/'))
|
||||
|
Loading…
Reference in New Issue
Block a user