Run codemods
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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, []);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user