Run codemods
This commit is contained in:
@@ -14,7 +14,7 @@ export default Component.extend({
|
|||||||
contributions: null,
|
contributions: null,
|
||||||
|
|
||||||
chartData: computed('contributions', function() {
|
chartData: computed('contributions', function() {
|
||||||
let kredits = this.get('contributions')
|
let kredits = this.contributions
|
||||||
.map(c => {
|
.map(c => {
|
||||||
return { kind: c.kind, amount: c.amount }
|
return { kind: c.kind, amount: c.amount }
|
||||||
}).reduce(function (kinds, c) {
|
}).reduce(function (kinds, c) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { module, test } from 'qunit';
|
import { module, test } from 'qunit';
|
||||||
import { setupRenderingTest } from 'ember-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';
|
import hbs from 'htmlbars-inline-precompile';
|
||||||
|
|
||||||
module('Integration | Component | add proposal', function(hooks) {
|
module('Integration | Component | add proposal', function(hooks) {
|
||||||
@@ -13,6 +13,6 @@ module('Integration | Component | add proposal', function(hooks) {
|
|||||||
|
|
||||||
await render(hbs`{{add-proposal}}`);
|
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}}`);
|
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 { module, test } from 'qunit';
|
||||||
import { setupRenderingTest } from 'ember-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';
|
import hbs from 'htmlbars-inline-precompile';
|
||||||
|
|
||||||
module('Integration | Component | contributor list', function(hooks) {
|
module('Integration | Component | contributor list', function(hooks) {
|
||||||
@@ -13,6 +13,6 @@ module('Integration | Component | contributor list', function(hooks) {
|
|||||||
|
|
||||||
await render(hbs`{{contributor-list}}`);
|
await render(hbs`{{contributor-list}}`);
|
||||||
|
|
||||||
assert.equal(find('*').textContent.trim(), '');
|
assert.dom('*').hasText('');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { module, test } from 'qunit';
|
import { module, test } from 'qunit';
|
||||||
import { setupRenderingTest } from 'ember-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';
|
import hbs from 'htmlbars-inline-precompile';
|
||||||
|
|
||||||
module('Integration | Component | loading spinner', function(hooks) {
|
module('Integration | Component | loading spinner', function(hooks) {
|
||||||
@@ -13,6 +13,6 @@ module('Integration | Component | loading spinner', function(hooks) {
|
|||||||
|
|
||||||
await render(hbs`{{loading-spinner}}`);
|
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 { module, test } from 'qunit';
|
||||||
import { setupRenderingTest } from 'ember-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';
|
import hbs from 'htmlbars-inline-precompile';
|
||||||
|
|
||||||
module('Integration | Component | proposal list', function(hooks) {
|
module('Integration | Component | proposal list', function(hooks) {
|
||||||
@@ -13,6 +13,6 @@ module('Integration | Component | proposal list', function(hooks) {
|
|||||||
|
|
||||||
await render(hbs`{{proposal-list}}`);
|
await render(hbs`{{proposal-list}}`);
|
||||||
|
|
||||||
assert.equal(find('*').textContent.trim(), '');
|
assert.dom('*').hasText('');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user