1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 21:29:42 +02:00
documize/gui/tests/integration/helpers/is-one-of-test.js

18 lines
506 B
JavaScript
Raw Normal View History

2018-12-08 15:39:31 +00:00
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
2018-01-24 13:23:11 +00:00
import hbs from 'htmlbars-inline-precompile';
2018-12-08 15:39:31 +00:00
module('helper:action-type', function(hooks) {
setupRenderingTest(hooks);
2018-01-24 13:23:11 +00:00
2018-12-08 15:39:31 +00:00
// Replace this with your real tests.
test('it renders', async function(assert) {
this.set('inputValue', '1234');
2018-01-24 13:23:11 +00:00
2018-12-08 15:39:31 +00:00
await render(hbs`{{is-one-of 1 1 2 3}}`);
2018-01-24 13:23:11 +00:00
2018-12-08 15:39:31 +00:00
assert.equal(find('*').textContent.trim(), 'true');
});
2018-01-24 13:23:11 +00:00
});