refactor: 💡 mock authenticate should handle multiple auth types

This commit is contained in:
Randall Morey committed 2021-01-15 17:32:30 -05:00
1 parent 92640b96aa
commit a3c12b36e7
6 files changed
+36 -69

No files matched your search

@@ -1,26 +0,0 @@
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/authenticate/oidc', 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::Authenticate::Oidc />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<Form::Authenticate::Oidc>
template block text
</Form::Authenticate::Oidc>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});