mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 22:54:39 +08:00
d90063fc59
Fix upgrades ace editor, which was a huge headache due to AMD.
20 lines
479 B
JavaScript
20 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');
|
|
});
|
|
});
|