mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-18 06:06:55 +00:00
20 lines
647 B
JavaScript
20 lines
647 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render } from '@ember/test-helpers';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
module('Integration | Component | dataset aclaccess', function(hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function(assert) {
|
|
this.setProperties({
|
|
acls: [],
|
|
accessTypeDropDownOptions: []
|
|
});
|
|
|
|
await render(hbs`{{dataset-aclaccess acls=acls accessTypeDropDownOptions=accessTypeDropDownOptions}}`);
|
|
|
|
assert.ok(document.querySelector('.acl-permission__header'), 'it renders a constituent element in the DOM');
|
|
});
|
|
});
|