Run codemods

This commit is contained in:
2019-07-15 18:35:40 +02:00
parent 80af572742
commit 42fe01b349
2 changed files with 30 additions and 30 deletions
@@ -11,7 +11,7 @@ module('Integration | Component | user-avatar', function(hooks) {
this.set('bumi', contributors.findBy('id', '1')); this.set('bumi', contributors.findBy('id', '1'));
await render(hbs`{{user-avatar contributor=bumi}}`); await render(hbs`{{user-avatar contributor=bumi}}`);
assert.equal(this.element.textContent.trim(), ''); assert.dom(this.element).hasText('');
}); });
test('default image source URL', async function(assert) { test('default image source URL', async function(assert) {
+2 -2
View File
@@ -5,8 +5,7 @@ import { A } from '@ember/array';
import { module, test } from 'qunit'; import { module, test } from 'qunit';
import groupBy from 'kredits-web/utils/group-by'; import groupBy from 'kredits-web/utils/group-by';
module('Unit | Utils | group-by'); module('Unit | Utils | group-by', function () {
let car1 = { name: 'Carrera', color: 'red' }; let car1 = { name: 'Carrera', color: 'red' };
let car2 = { name: 'Veyron', color: 'red' }; let car2 = { name: 'Veyron', color: 'red' };
let car3 = { name: 'Corvette', color: 'blue' }; let car3 = { name: 'Corvette', color: 'blue' };
@@ -39,3 +38,4 @@ test('it does not failkwith null', function(assert) {
let result = groupBy(cars, 'color'); let result = groupBy(cars, 'color');
assert.deepEqual(result, []); assert.deepEqual(result, []);
}); });
});