Run codemods

This commit is contained in:
2019-03-26 22:31:35 +01:00
parent b16bb2d93a
commit 487013f301
6 changed files with 10 additions and 10 deletions
@@ -14,7 +14,7 @@ export default Component.extend({
contributions: null,
chartData: computed('contributions', function() {
let kredits = this.get('contributions')
let kredits = this.contributions
.map(c => {
return { kind: c.kind, amount: c.amount }
}).reduce(function (kinds, c) {
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | add proposal', function(hooks) {
@@ -13,6 +13,6 @@ module('Integration | Component | add proposal', function(hooks) {
await render(hbs`{{add-proposal}}`);
assert.equal(find('.actions a').textContent.trim(), 'Back');
assert.dom('.actions a').hasText('Back');
});
});
@@ -24,6 +24,6 @@ module('Integration | Component | chart-contributions-by-type', function(hooks)
await render(hbs`{{chart-contributions-by-type contributions=proposals}}`);
assert.equal(this.element.textContent.trim(), '');
assert.dom(this.element).hasText('');
});
});
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | contributor list', function(hooks) {
@@ -13,6 +13,6 @@ module('Integration | Component | contributor list', function(hooks) {
await render(hbs`{{contributor-list}}`);
assert.equal(find('*').textContent.trim(), '');
assert.dom('*').hasText('');
});
});
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | loading spinner', function(hooks) {
@@ -13,6 +13,6 @@ module('Integration | Component | loading spinner', function(hooks) {
await render(hbs`{{loading-spinner}}`);
assert.equal(find('*').textContent.trim(), 'Loading data from Ethereum...');
assert.dom('*').hasText('Loading data from Ethereum...');
});
});
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | proposal list', function(hooks) {
@@ -13,6 +13,6 @@ module('Integration | Component | proposal list', function(hooks) {
await render(hbs`{{proposal-list}}`);
assert.equal(find('*').textContent.trim(), '');
assert.dom('*').hasText('');
});
});