Upgrade ember qunit, create new interface for testing components

This commit is contained in:
Robin Ward
2015-07-14 13:56:59 -04:00
parent 1397507d05
commit 7a58d64f37
7 changed files with 162 additions and 146 deletions

View File

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