mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* exported exists, count, present, blank, containsInstance, not, visible */
|
||||
/* exported exists, count, present, blank, containsInstance, not, visible, invisible */
|
||||
|
||||
function exists(selector) {
|
||||
return !!count(selector);
|
||||
|
||||
Reference in New Issue
Block a user