discourse/test/javascripts/components/ace-editor-test.js.es6

18 lines
473 B
Text
Raw Normal View History

import componentTest from 'helpers/component-test';
moduleForComponent('ace-editor', {integration: true});
componentTest('css editor', {
template: '{{ace-editor mode="css"}}',
test(assert) {
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
}
});
componentTest('html editor', {
2016-07-05 11:03:10 -04:00
template: '{{ace-editor mode="html" content="<b>wat</b>"}}',
test(assert) {
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
}
});