Files
piratepoet/tests/javascript/newsletter_editor/components/config.spec.js
2017-07-31 09:27:26 +02:00

16 lines
424 B
JavaScript

define([
'newsletter_editor/App',
'newsletter_editor/components/config'
], function(EditorApplication, ConfigComponent) {
describe('Config', function () {
it('loads and stores configuration', function() {
ConfigComponent.setConfig({
testConfig: 'testValue'
});
var model = ConfigComponent.getConfig();
expect(model.get('testConfig')).to.equal('testValue');
});
});
});