Files
piratepoet/tests/javascript/newsletter_editor/components/config.spec.js
Amine Ben hammou 9b41641e97 Tests vars-on-top
2017-10-09 11:17:23 +00:00

19 lines
462 B
JavaScript

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