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

20 lines
503 B
Plaintext
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) {
2016-11-09 03:29:50 +08:00
expect(1);
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
}
});
componentTest('html editor', {
2016-07-05 23:03:10 +08:00
template: '{{ace-editor mode="html" content="<b>wat</b>"}}',
test(assert) {
2016-11-09 03:29:50 +08:00
expect(1);
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
}
});