1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

[WIP] Upgrading EmberJS codemods

This commit is contained in:
Harvey Kandola 2018-12-08 15:39:31 +00:00
parent 4b68529090
commit 5cfbf07e55
8 changed files with 376 additions and 425 deletions

View file

@ -1,15 +1,17 @@
import { moduleForComponent, test } from 'ember-qunit';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('is-one-of', 'helper:action-type', {
integration: true
});
// Replace this with your real tests.
test('it renders', function(assert) {
this.set('inputValue', '1234');
this.render(hbs`{{is-one-of 1 1 2 3}}`);
assert.equal(this.$().text().trim(), 'true');
module('helper:action-type', function(hooks) {
setupRenderingTest(hooks);
// Replace this with your real tests.
test('it renders', async function(assert) {
this.set('inputValue', '1234');
await render(hbs`{{is-one-of 1 1 2 3}}`);
assert.equal(find('*').textContent.trim(), 'true');
});
});