mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
497a74beb0
closes #5815 - replaces isNaN function call with isFinite in config service - adds config service unit test
35 lines
854 B
JavaScript
35 lines
854 B
JavaScript
/* jshint expr:true */
|
|
import { expect } from 'chai';
|
|
import {
|
|
describeModule,
|
|
it
|
|
} from 'ember-mocha';
|
|
|
|
import Ember from 'ember';
|
|
|
|
describeModule(
|
|
'service:config',
|
|
'ConfigService',
|
|
{
|
|
// Specify the other units that are required for this test.
|
|
// needs: ['service:foo']
|
|
},
|
|
function () {
|
|
// Replace this with your real tests.
|
|
it('exists', function () {
|
|
var service = this.subject();
|
|
expect(service).to.be.ok;
|
|
});
|
|
|
|
it('correctly parses a client secret', function () {
|
|
Ember.$('<meta>').attr('name', 'env-clientSecret')
|
|
.attr('content', '23e435234423')
|
|
.appendTo('head');
|
|
|
|
var service = this.subject();
|
|
|
|
expect(service.get('clientSecret')).to.equal('23e435234423');
|
|
});
|
|
}
|
|
);
|