Skip to content

Commit dcc261a

Browse files
author
Alex Alvarez
committed
Adding nested test failing testcase
1 parent 822e1be commit dcc261a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

__testfixtures__/ember-qunit-codemod/subject.input.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ test('has some thing', function (assert) {
2424
let subject = this.subject();
2525
});
2626

27-
test('has another thing', function (assert) {
28-
let subject = this.subject({ size: 'big' });
27+
['big', 'small'].forEach((size) => {
28+
test('has another thing', function (assert) {
29+
let subject = this.subject({ size });
30+
});
2931
});
3032

3133
moduleForModel('foo', 'Integration | Model | Foo', {

__testfixtures__/ember-qunit-codemod/subject.output.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ module('Unit | Component | FooBar', function(hooks) {
5454
let subject = this.owner.factoryFor('component:foo-bar').create();
5555
});
5656

57-
test('has another thing', function (assert) {
58-
let subject = this.owner.factoryFor('component:foo-bar').create({ size: 'big' });
57+
['big', 'small'].forEach((size) => {
58+
test('has another thing', function (assert) {
59+
let subject = this.owner.factoryFor('component:foo-bar').create({ size });
60+
});
5961
});
6062
});
6163

0 commit comments

Comments
 (0)