Files
piratepoet/tests/javascript/newsletter_editor/components/config.spec.js
2019-02-21 11:52:39 -05:00

15 lines
381 B
JavaScript

import ConfigComponent from 'newsletter_editor/components/config';
const expect = global.expect;
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');
});
});