mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
739443bb72
no issue - standardize on "{TestType}: {ModuleType}: {module-name}" for test description strings - standardize on `{module-name}-test.js` for test file names - fix deprecation notices for ember component unit tests without explicit `unit: test` or `needs: []`
34 lines
862 B
JavaScript
34 lines
862 B
JavaScript
/* jshint expr:true */
|
|
import { expect } from 'chai';
|
|
import {
|
|
describeModule,
|
|
it
|
|
} from 'ember-mocha';
|
|
|
|
import Ember from 'ember';
|
|
|
|
describeModule(
|
|
'service:config',
|
|
'Unit: Service: config',
|
|
{
|
|
// 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');
|
|
});
|
|
}
|
|
);
|