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
|
|
|
});
|