File tree Expand file tree Collapse file tree
__testfixtures__/ember-qunit-codemod Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { moduleFor , test } from 'ember-qunit' ;
2+
3+ moduleFor ( 'stuff:here' , {
4+ customFunction ( ) {
5+ return stuff ( ) ;
6+ }
7+ } ) ;
8+
9+ test ( 'users customFunction' , function ( assert ) {
10+ let custom = this . customFunction ( ) ;
11+ } ) ;
12+
13+ moduleFor ( 'stuff:here' , {
14+ customFunction ( ) {
15+ return stuff ( ) ;
16+ } ,
17+
18+ otherThing ( basedOn ) {
19+ return this . blah ( basedOn ) ;
20+ }
21+ } ) ;
22+
23+ test ( 'can have two' , function ( assert ) {
24+ let custom = this . customFunction ( ) ;
25+ let other = this . otherThing ( ) ;
26+ } ) ;
Original file line number Diff line number Diff line change 1+ import { module , test } from 'qunit' ;
2+ import { setupTest } from 'ember-qunit' ;
3+
4+ module ( 'stuff:here' , function ( hooks ) {
5+ setupTest ( hooks ) ;
6+
7+ hooks . beforeEach ( function ( ) {
8+ this . customFunction = function ( ) {
9+ return stuff ( ) ;
10+ } ;
11+ } ) ;
12+
13+ test ( 'users customFunction' , function ( assert ) {
14+ let custom = this . customFunction ( ) ;
15+ } ) ;
16+ } ) ;
17+
18+ module ( 'stuff:here' , function ( hooks ) {
19+ setupTest ( hooks ) ;
20+
21+ hooks . beforeEach ( function ( ) {
22+ this . customFunction = function ( ) {
23+ return stuff ( ) ;
24+ } ;
25+
26+ this . otherThing = function ( basedOn ) {
27+ return this . blah ( basedOn ) ;
28+ } ;
29+ } ) ;
30+
31+ test ( 'can have two' , function ( assert ) {
32+ let custom = this . customFunction ( ) ;
33+ let other = this . otherThing ( ) ;
34+ } ) ;
35+ } ) ;
You can’t perform that action at this time.
0 commit comments