1
0
Fork 0
sortable-recipes/ember-ui/tests/integration/components/sortable-item-accessible-test.js
2020-03-03 16:07:45 -06:00

26 lines
816 B
JavaScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | sortable-item-accessible', function(hooks) {
setupRenderingTest(hooks);
test('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`<SortableItemAccessible />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<SortableItemAccessible>
template block text
</SortableItemAccessible>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});