@@ -126,11 +126,11 @@ module.exports = function(file, api, options) {
126126 }
127127 }
128128
129- function updateEmberTestHelperImports ( ) {
129+ function updateEmberTestHelperImports ( ctx ) {
130130 let specifiers = new Set ( ) ;
131131
132132 [ 'render' , 'clearRender' ] . forEach ( type => {
133- let usages = findTestHelperUsageOf ( root , type ) ;
133+ let usages = findTestHelperUsageOf ( ctx , type ) ;
134134 if ( usages . size ( ) > 0 ) {
135135 specifiers . add ( type ) ;
136136 }
@@ -465,8 +465,8 @@ module.exports = function(file, api, options) {
465465 } ) ;
466466 }
467467
468- function updateRegisterCalls ( ) {
469- root
468+ function updateRegisterCalls ( ctx ) {
469+ ctx
470470 . find ( j . MemberExpression , {
471471 object : {
472472 object : { type : 'ThisExpression' } ,
@@ -479,7 +479,7 @@ module.exports = function(file, api, options) {
479479 path . replace ( j . memberExpression ( thisDotOwner , path . value . property ) ) ;
480480 } ) ;
481481
482- root
482+ ctx
483483 . find ( j . MemberExpression , {
484484 object : { type : 'ThisExpression' } ,
485485 property : { name : 'register' } ,
@@ -490,8 +490,8 @@ module.exports = function(file, api, options) {
490490 } ) ;
491491 }
492492
493- function updateInjectCalls ( ) {
494- root
493+ function updateInjectCalls ( ctx ) {
494+ ctx
495495 . find ( j . CallExpression , {
496496 callee : {
497497 type : 'MemberExpression' ,
0 commit comments