Skip to content

Commit

Permalink
test for content_api_key added, passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cathysarisky committed Oct 1, 2024
1 parent e65057b commit 52af974
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ghost/core/test/unit/frontend/helpers/content_api_key.test.js
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);
});
});
});

0 comments on commit 52af974

Please sign in to comment.