diff --git a/__testfixtures__/ember-qunit-codemod/subject.input.js b/__testfixtures__/ember-qunit-codemod/subject.input.js index 573a8b1..5378f3a 100644 --- a/__testfixtures__/ember-qunit-codemod/subject.input.js +++ b/__testfixtures__/ember-qunit-codemod/subject.input.js @@ -24,8 +24,10 @@ test('has some thing', function (assert) { let subject = this.subject(); }); -test('has another thing', function (assert) { - let subject = this.subject({ size: 'big' }); +['big', 'small'].forEach(function (size) { + test('has another thing', function (assert) { + let subject = this.subject({ size }); + }); }); moduleForModel('foo', 'Integration | Model | Foo', { diff --git a/__testfixtures__/ember-qunit-codemod/subject.output.js b/__testfixtures__/ember-qunit-codemod/subject.output.js index 7859b9b..d368406 100644 --- a/__testfixtures__/ember-qunit-codemod/subject.output.js +++ b/__testfixtures__/ember-qunit-codemod/subject.output.js @@ -26,8 +26,10 @@ module('Unit | Model | Foo', function(hooks) { let subject = run(() => this.owner.lookup('service:store').createRecord('foo')); }); - test('has another thing', function (assert) { - let subject = run(() => this.owner.lookup('service:store').createRecord('foo', { size: 'big' })); + ['big', 'small'].forEach(function (size) { + test('has another thing', function (assert) { + let subject = this.owner.factoryFor('component:foo-bar').create({ size }); + }); }); });