Integrate newsletter editor tests

This commit is contained in:
Tautvidas Sipavičius
2015-08-26 18:24:43 +03:00
parent 4d1fd2b2d8
commit 21a4843a48
29 changed files with 3116 additions and 2805 deletions

View File

@ -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');
});
});
});