Add charts.js plugin, basic chart component

This commit is contained in:
2018-07-14 16:36:23 +02:00
parent 6efc3ea790
commit 7a35f5177c
7 changed files with 207 additions and 28 deletions
@@ -0,0 +1,26 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | chart-contributions-by-type', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`{{chart-contributions-by-type}}`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
{{#chart-contributions-by-type}}
template block text
{{/chart-contributions-by-type}}
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});