Integrate newsletter editor tests
This commit is contained in:
@ -1,9 +1,15 @@
|
||||
describe('Config', function () {
|
||||
it('loads and stores configuration', function() {
|
||||
EditorApplication.module('components.config').setConfig({
|
||||
testConfig: 'testValue',
|
||||
});
|
||||
var model = EditorApplication.module('components.config').getConfig();
|
||||
expect(model.get('testConfig')).to.equal('testValue');
|
||||
});
|
||||
define('test/newsletter_editor/components/config', [
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/components/config'
|
||||
], function(EditorApplication) {
|
||||
|
||||
describe('Config', function () {
|
||||
it('loads and stores configuration', function() {
|
||||
EditorApplication.module('components.config').setConfig({
|
||||
testConfig: 'testValue',
|
||||
});
|
||||
var model = EditorApplication.module('components.config').getConfig();
|
||||
expect(model.get('testConfig')).to.equal('testValue');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user