2018-02-07 12:32:03 -08:00
|
|
|
import { moduleForComponent, test } from 'ember-qunit';
|
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
import { triggerEvent } from 'ember-native-dom-helpers';
|
|
|
|
|
|
|
|
moduleForComponent('dataset-aclaccess', 'Integration | Component | dataset aclaccess', {
|
|
|
|
integration: true
|
|
|
|
});
|
|
|
|
|
|
|
|
test('it renders', function(assert) {
|
|
|
|
this.setProperties({
|
2018-03-27 08:39:17 -07:00
|
|
|
acls: [],
|
|
|
|
accessTypeDropDownOptions: []
|
2018-02-07 12:32:03 -08:00
|
|
|
});
|
|
|
|
|
2018-03-27 08:39:17 -07:00
|
|
|
this.render(hbs`{{dataset-aclaccess acls=acls accessTypeDropDownOptions=accessTypeDropDownOptions}}`);
|
2018-02-07 12:32:03 -08:00
|
|
|
|
2018-03-27 08:39:17 -07:00
|
|
|
assert.ok(document.querySelector('.acl-permission__header'), 'it renders a constituent element in the DOM');
|
2018-02-07 12:32:03 -08:00
|
|
|
});
|