Ui/pricing metrics params (#10083)

metrics route takes start and end params and passes to the date display field, as well as the route's API call
This commit is contained in:
Chelsea Shaw
2020-10-05 16:34:52 -05:00
committed by GitHub
parent 376789069a
commit 2c7cadb731
29 changed files with 528 additions and 190 deletions

View File

@@ -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 | form-error', 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`{{form-error}}`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
{{#form-error}}
template block text
{{/form-error}}
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});