Skip to content

Commit 7ce802f

Browse files
cibernoxRobert Jackson
authored andcommitted
Save more use-cases
1 parent c92b441 commit 7ce802f

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@ test('should allow messages to be queued', function (assert) {
88
let subject = this.subject();
99
});
1010

11+
moduleFor('service:non-singleton-service', 'Unit | Service | NonSingletonService', {
12+
unit: true
13+
});
14+
15+
test('does something', function (assert) {
16+
let subject = this.subject({ name: 'James' });
17+
});
18+
1119
moduleFor('model:foo', 'Unit | Model | Foo', {
1220
unit: true
1321
});
1422

15-
test('should allow messages to be queued', function (assert) {
23+
test('has some thing', function (assert) {
1624
let subject = this.subject();
25+
});
26+
27+
test('has another thing', function (assert) {
28+
let subject = this.subject({ size: 'big' });
1729
});

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,22 @@ module('Unit | Service | Flash', function(hooks) {
99
});
1010
});
1111

12+
module('Unit | Service | NonSingletonService', function(hooks) {
13+
setupTest(hooks);
14+
15+
test('does something', function (assert) {
16+
let subject = this.owner.factoryFor('service:non-singleton-service').create({ name: 'James' });
17+
});
18+
});
19+
1220
module('Unit | Model | Foo', function(hooks) {
1321
setupTest(hooks);
1422

15-
test('should allow messages to be queued', function (assert) {
23+
test('has some thing', function (assert) {
1624
let subject = this.owner.factoryFor('model:foo').create();
1725
});
26+
27+
test('has another thing', function (assert) {
28+
let subject = this.owner.factoryFor('model:foo').create({ size: 'big' });
29+
});
1830
});

0 commit comments

Comments
 (0)