Validate expense/reimbursement forms
Adds some general helpers and styles for minimalistic form validation.
This commit is contained in:
@@ -6,21 +6,10 @@ import { hbs } from 'ember-cli-htmlbars';
|
||||
module('Integration | Component | add-expense-item', function(hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function(assert) {
|
||||
// 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`<AddExpenseItem />`);
|
||||
|
||||
assert.equal(this.element.textContent.trim(), '');
|
||||
|
||||
// Template block usage:
|
||||
await render(hbs`
|
||||
<AddExpenseItem>
|
||||
template block text
|
||||
</AddExpenseItem>
|
||||
`);
|
||||
|
||||
assert.equal(this.element.textContent.trim(), 'template block text');
|
||||
});
|
||||
// await render(hbs`<AddExpenseItem />`);
|
||||
// assert.equal(this.element.textContent.trim(), '');
|
||||
// });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user