mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-12 08:41:23 -05:00
d90063fc59
Fix upgrades ace editor, which was a huge headache due to AMD.
19 lines
479 B
JavaScript
19 lines
479 B
JavaScript
moduleForComponent('ace-editor', {integration: true});
|
|
|
|
test('css editor', function(assert) {
|
|
andThen(() => {
|
|
this.render('{{ace-editor mode="css"}}');
|
|
});
|
|
andThen(() => {
|
|
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
|
|
});
|
|
});
|
|
|
|
test('html editor', function(assert) {
|
|
andThen(() => {
|
|
this.render('{{ace-editor mode="html"}}');
|
|
});
|
|
andThen(() => {
|
|
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
|
|
});
|
|
});
|