File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
transforms/convert-module-for-to-setup-test Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ //import RSVP from 'rsvp';
2+ import { module } from 'qunit' ;
3+
4+ module ( 'Unit | whatever' ) ;
5+
6+ // test('commented out test', function(assert) {});
Original file line number Diff line number Diff line change 1+ //import RSVP from 'rsvp';
2+ import { module } from 'qunit' ;
3+
4+ module ( 'Unit | whatever' , function ( ) { } ) ;
5+
6+ // test('commented out test', function(assert) {});
Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ module.exports = function(file, api) {
7777 subject = j . literal ( `model:${ calleeArguments [ 0 ] . value } ` ) ;
7878 }
7979
80+ this . comments = p . node . comments ;
81+ this . trailingComments = p . node . trailingComments ;
82+
8083 this . originalSetupType = calleeName ;
8184 this . moduleName = moduleName ;
8285 this . moduleOptions = options ;
@@ -451,6 +454,8 @@ module.exports = function(file, api) {
451454 }
452455 }
453456
457+ moduleInvocation . comments = moduleInfo . comments ;
458+ moduleInvocation . trailingComments = moduleInfo . trailingComments ;
454459 moduleInfo . moduleInvocation = moduleInvocation ;
455460
456461 if ( needsHooks === true ) {
You can’t perform that action at this time.
0 commit comments