datahub/wherehows-web/tests/integration/components/datasets/dataset-relationships-test.ts

30 lines
872 B
TypeScript

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';
import { startMirage } from 'wherehows-web/initializers/ember-cli-mirage';
module('Integration | Component | datasets/dataset-relationships', function(hooks) {
setupRenderingTest(hooks);
hooks.beforeEach(function(this: any) {
this.server = startMirage();
});
hooks.afterEach(function(this: any) {
this.server.shutdown();
});
test('component rendering', async function(assert) {
this.set('urn', nonHdfsUrn);
await render(hbs`
{{#datasets/dataset-relationships urn=urn}}
{{/datasets/dataset-relationships}}
`);
assert.ok(this.element, 'renders component into DOM');
});
});