add-reimbursement component
This commit is contained in:
@@ -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}}
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<section id="add-item">
|
<section id="add-item">
|
||||||
<header>
|
<header>
|
||||||
<h2>Submit a reimbursement</h2>
|
<h2>Submit a Reimbursement</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
@@ -9,18 +9,7 @@ module('Integration | Component | add-reimbursement', function(hooks) {
|
|||||||
test('it renders', async function(assert) {
|
test('it renders', async function(assert) {
|
||||||
// Set any properties with this.set('myProperty', 'value');
|
// Set any properties with this.set('myProperty', 'value');
|
||||||
// Handle any actions with this.set('myAction', function(val) { ... });
|
// Handle any actions with this.set('myAction', function(val) { ... });
|
||||||
|
|
||||||
await render(hbs`<AddReimbursement />`);
|
await render(hbs`<AddReimbursement />`);
|
||||||
|
|
||||||
assert.equal(this.element.textContent.trim(), '');
|
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');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user