mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Upgrade ember qunit, create new interface for testing components
This commit is contained in:
@ -1,19 +1,17 @@
|
||||
import componentTest from 'helpers/component-test';
|
||||
|
||||
moduleForComponent('ace-editor', {integration: true});
|
||||
|
||||
test('css editor', function(assert) {
|
||||
andThen(() => {
|
||||
this.render('{{ace-editor mode="css"}}');
|
||||
});
|
||||
andThen(() => {
|
||||
componentTest('css editor', {
|
||||
template: '{{ace-editor mode="css"}}',
|
||||
test(assert) {
|
||||
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
test('html editor', function(assert) {
|
||||
andThen(() => {
|
||||
this.render('{{ace-editor mode="html"}}');
|
||||
});
|
||||
andThen(() => {
|
||||
componentTest('html editor', {
|
||||
template: '{{ace-editor mode="html"}}',
|
||||
test(assert) {
|
||||
assert.ok(this.$('.ace_editor').length, 'it renders the ace editor');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user