2018-08-09 10:41:52 -07:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
2018-08-09 23:25:55 -07:00
|
|
|
import { render, find } from '@ember/test-helpers';
|
2018-02-21 09:46:04 -08:00
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
import { urn } from 'wherehows-web/mirage/fixtures/urn';
|
|
|
|
|
2018-08-09 10:41:52 -07:00
|
|
|
module('Integration | Component | datasets/containers/dataset schema', function(hooks) {
|
|
|
|
setupRenderingTest(hooks);
|
2018-02-21 09:46:04 -08:00
|
|
|
|
2018-08-09 10:41:52 -07:00
|
|
|
test('it renders', async function(assert) {
|
|
|
|
this.set('urn', urn);
|
|
|
|
await render(hbs`{{datasets/containers/dataset-schema urn=urn}}`);
|
2018-02-21 09:46:04 -08:00
|
|
|
|
2018-08-09 10:41:52 -07:00
|
|
|
assert.ok(find('#json-viewer'), 'renders the dataset schema component');
|
|
|
|
});
|
2018-02-21 09:46:04 -08:00
|
|
|
});
|