Files
piratepoet/tests/javascript/newsletter_editor/components/config.spec.js
Pavel Dohnal 72c0a6f165 Fix eslint no-undef in tests
[MAILPOET-1085]
2017-09-11 15:03:30 +01:00

18 lines
449 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() {
ConfigComponent.setConfig({
testConfig: 'testValue'
});
var model = ConfigComponent.getConfig();
expect(model.get('testConfig')).to.equal('testValue');
});
});
});