Merge pull request #443 from fauxton/remove_component_test_deprecations

Remove component test deprecations by specifying test type
This commit is contained in:
Piotr Sarnacki 2016-02-01 10:38:01 +01:00
commit 84e207641e
6 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,8 @@
import { test, moduleForComponent } from 'ember-qunit';
import Ember from 'ember';
moduleForComponent('build-repo-actions', 'BuildRepoActionsComponent', {});
moduleForComponent('build-repo-actions', 'BuildRepoActionsComponent', {
unit: true
});
test('it shows cancel button if canCancel is true', function() {
var component;

View File

@ -1,7 +1,9 @@
import { test, moduleForComponent } from 'ember-qunit';
import Ember from 'ember';
moduleForComponent('job-repo-actions', 'JobRepoActionsComponent', {});
moduleForComponent('job-repo-actions', 'JobRepoActionsComponent', {
unit: true
});
test('it shows cancel button if canCancel is true', function() {
var component;

View File

@ -1,6 +1,8 @@
// Generated by CoffeeScript 1.10.0
import { test, moduleForComponent } from 'ember-qunit';
moduleForComponent('loading-indicator', {});
moduleForComponent('loading-indicator', {
unit: true
});
test('it renders', function(assert) {
var component;

View File

@ -1,6 +1,8 @@
// Generated by CoffeeScript 1.10.0
import { test, moduleForComponent } from 'ember-qunit';
moduleForComponent('no-builds', {});
moduleForComponent('no-builds', {
unit: true
});
test('it renders', function(assert) {
var component;

View File

@ -3,7 +3,9 @@ import Ember from 'ember';
var server = null;
moduleForComponent('travis-status', 'TravisStatusComponent', {});
moduleForComponent('travis-status', 'TravisStatusComponent', {
unit: true
});
test('adds incident class to .status-circle', function() {
var component;

View File

@ -3,7 +3,7 @@ import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('user-avatar', 'UserAvatarComponent | Unit', {
unit: true
});
test('it renders', function() {
@ -17,5 +17,4 @@ test('it renders', function() {
ok(component.$().hasClass('avatar'), 'component should have right class');
equal(component.$('.pseudo-avatar').data('initials'), 'HT', 'initials should be correct');
equal(component.$('.real-avatar').attr('src'), 'https://someurl.com/someimage.jpg', 'avatar should be right');
});