Skip to content

Commit

Permalink
feat: Generate login-form component
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Lara committed Jun 2, 2019
1 parent f4c3ddf commit 2bfc44f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/login-form.js
@@ -0,0 +1,4 @@
import Component from '@ember/component';

export default Component.extend({
});
1 change: 1 addition & 0 deletions app/templates/components/login-form.hbs
@@ -0,0 +1 @@
{{yield}}
26 changes: 26 additions & 0 deletions tests/integration/components/login-form-test.js
@@ -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 | login-form', 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`<LoginForm />`);

assert.equal(this.element.textContent.trim(), '');

// Template block usage:
await render(hbs`
<LoginForm>
template block text
</LoginForm>
`);

assert.equal(this.element.textContent.trim(), 'template block text');
});
});

0 comments on commit 2bfc44f

Please sign in to comment.