-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test for content_api_key added, passing.
- Loading branch information
1 parent
e65057b
commit 52af974
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
ghost/core/test/unit/frontend/helpers/content_api_key.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable no-regex-spaces */ | ||
const proxy = require('../../../../core/frontend/services/proxy'); | ||
const {getFrontendKey} = proxy; | ||
const should = require('should'); | ||
|
||
// Stuff we are testing | ||
const content_api_key = require('../../../../core/frontend/helpers/content_api_key'); | ||
|
||
describe('{{content_api_key}} helper', function () { | ||
describe('compare to settings', function () { | ||
it('returns the content API key', async function () { | ||
const result = await content_api_key(); | ||
const expected = await getFrontendKey(); | ||
should.exist(result); | ||
String(result).should.equal(expected); | ||
}); | ||
}); | ||
}); | ||
|