Files
piratepoet/tests/javascript/newsletter_editor/components/config.spec.js
2015-09-09 14:19:08 +03:00

16 lines
425 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');
});
});
});