mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 03:03:44 +08:00
18 lines
473 B
JavaScript
18 lines
473 B
JavaScript
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', {
|
|
template: '{{ace-editor mode="html" content="<b>wat</b>"}}',
|
|
test(assert) {
|
|
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
|
|
}
|
|
});
|