mirror of
https://github.com/status-im/consul.git
synced 2025-01-17 17:22:17 +00:00
9d21736e9f
* Add copyright headers to UI files * Ensure copywrite file ignores external libs
28 lines
710 B
JavaScript
28 lines
710 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.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 | Helper | service/card-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/card-permissions inputValue}}`);
|
|
|
|
assert.equal(this.element.textContent.trim(), 'allow');
|
|
});
|
|
});
|