2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
discourse/test/javascripts/components/ace-editor-test.js.es6

20 lines
517 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) {
2017-06-14 13:57:58 -04:00
assert.expect(1);
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) {
2017-06-14 13:57:58 -04:00
assert.expect(1);
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
}
});