mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
31 lines
745 B
JavaScript
31 lines
745 B
JavaScript
/* jshint expr:true */
|
|
import { expect } from 'chai';
|
|
import {
|
|
describeModule,
|
|
it
|
|
} from 'ember-mocha';
|
|
import $ from 'jquery';
|
|
|
|
describeModule(
|
|
'service:config',
|
|
'Unit: Service: config',
|
|
{},
|
|
function () {
|
|
// Replace this with your real tests.
|
|
it('exists', function () {
|
|
let service = this.subject();
|
|
expect(service).to.be.ok;
|
|
});
|
|
|
|
it('correctly parses a client secret', function () {
|
|
$('<meta>').attr('name', 'env-clientSecret')
|
|
.attr('content', '23e435234423')
|
|
.appendTo('head');
|
|
|
|
let service = this.subject();
|
|
|
|
expect(service.get('clientSecret')).to.equal('23e435234423');
|
|
});
|
|
}
|
|
);
|