add-reimbursement component

This commit is contained in:
2020-08-12 22:53:08 +02:00
parent f63d14d7b4
commit 52172ea065
4 changed files with 9 additions and 13 deletions
@@ -0,0 +1,8 @@
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
export default class AddReimbursementComponent extends Component {
@service kredits;
}
@@ -1 +0,0 @@
{{yield}}
+1 -1
View File
@@ -2,7 +2,7 @@
<section id="add-item">
<header>
<h2>Submit a reimbursement</h2>
<h2>Submit a Reimbursement</h2>
</header>
<div class="content">
@@ -9,18 +9,7 @@ module('Integration | Component | add-reimbursement', function(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`<AddReimbursement />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<AddReimbursement>
template block text
</AddReimbursement>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});