mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: Error with ace editor and new ember.
Fix upgrades ace editor, which was a huge headache due to AMD.
This commit is contained in:
@ -1,6 +1,19 @@
|
||||
moduleForComponent('ace-editor', {needs: []});
|
||||
moduleForComponent('ace-editor', {integration: true});
|
||||
|
||||
test('changing colors', function(assert) {
|
||||
assert.expect(0);
|
||||
var component = this.subject();
|
||||
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');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user