35 lines
948 B
TypeScript
Raw Normal View History

import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { nonHdfsUrn } from 'wherehows-web/mirage/fixtures/urn';
2019-08-31 20:51:14 -07:00
import { setMockConfig, resetConfig } from 'wherehows-web/services/configurator';
module('Integration | Component | datasets/dataset-relationships', function(hooks) {
setupRenderingTest(hooks);
2019-08-31 20:51:14 -07:00
hooks.beforeEach(function() {
setMockConfig({
showLineageGraph: true
});
});
hooks.afterEach(function() {
resetConfig();
});
test('component rendering', async function(assert) {
this.set('urn', nonHdfsUrn);
2019-08-31 20:51:14 -07:00
this.set('dataset', {
uri: nonHdfsUrn
});
await render(hbs`
2019-08-31 20:51:14 -07:00
{{#datasets/dataset-relationships urn=urn dataset=dataset}}
{{/datasets/dataset-relationships}}
`);
assert.ok(this.element, 'renders component into DOM');
});
});