2020-10-08 15:52:09 +00:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
|
|
import { render } from '@ember/test-helpers';
|
|
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
|
2021-11-05 17:46:41 +00:00
|
|
|
module('Integration | Helper | service/card-permissions', function(hooks) {
|
2020-10-08 15:52:09 +00:00
|
|
|
setupRenderingTest(hooks);
|
|
|
|
|
|
|
|
// TODO: Replace this with your real tests.
|
|
|
|
test('it renders', async function(assert) {
|
|
|
|
this.set('inputValue', {
|
|
|
|
Intention: {
|
|
|
|
Allowed: false,
|
|
|
|
HasPermissions: true,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-11-05 17:46:41 +00:00
|
|
|
await render(hbs`{{service/card-permissions inputValue}}`);
|
2020-10-08 15:52:09 +00:00
|
|
|
|
|
|
|
assert.equal(this.element.textContent.trim(), 'allow');
|
|
|
|
});
|
|
|
|
});
|