feat: Init add-principals form component

This commit is contained in:
Susmitha Girumala committed 2020-09-01 15:39:05 -04:00
1 parent 4b1fa9a345
commit 0821160cda
2 files changed
+26 -1

No files matched your search

@@ -34,5 +34,4 @@ export default class FormRoleAddPrincipalsComponent extends Component {
submit(fn) {
fn(this.selectedPrincipalIDs);
}
}
@@ -0,0 +1,26 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | form/role/add-principals/index', 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::Role::AddPrincipals::Index />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<Form::Role::AddPrincipals::Index>
template block text
</Form::Role::AddPrincipals::Index>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});