discourse/test/javascripts/components/ace-editor-test.js.es6
Robin Ward d90063fc59 FIX: Error with ace editor and new ember.
Fix upgrades ace editor, which was a huge headache due to AMD.
2015-05-13 16:25:33 -04:00

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');
});
});