mirror of https://github.com/status-im/consul.git
23 lines
640 B
JavaScript
23 lines
640 B
JavaScript
|
import { module, test } from 'qunit';
|
||
|
import { setupRenderingTest } from 'ember-qunit';
|
||
|
import { render } from '@ember/test-helpers';
|
||
|
import { hbs } from 'ember-cli-htmlbars';
|
||
|
|
||
|
module('Integration | Helper | service/intention-permissions', function(hooks) {
|
||
|
setupRenderingTest(hooks);
|
||
|
|
||
|
// TODO: Replace this with your real tests.
|
||
|
test('it renders', async function(assert) {
|
||
|
this.set('inputValue', {
|
||
|
Intention: {
|
||
|
Allowed: false,
|
||
|
HasPermissions: true,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
await render(hbs`{{service/intention-permissions inputValue}}`);
|
||
|
|
||
|
assert.equal(this.element.textContent.trim(), 'allow');
|
||
|
});
|
||
|
});
|