Files
vault/ui/tests/integration/components/transform-template-edit-test.js
Chelsea Shaw f4cb33e4d4 Ui/transform templates (#9981)
Add CRUD capabilities on transform templates. Disallow read or edit for built-ins.
2020-09-17 14:08:06 -05:00

27 lines
827 B
JavaScript

import { module, skip } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | transform-template-edit', function(hooks) {
setupRenderingTest(hooks);
skip('it renders', async function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`{{transform-template-edit}}`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
{{#transform-template-edit}}
template block text
{{/transform-template-edit}}
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});