File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ var fs: any = require('fs');
33var path : any = require ( 'path' ) ;
44
55function instrumentForRecording ( fn : string , tscPath : string ) {
6- instrument ( tscPath , 'ts.sys = Playback.wrapSystem(ts.sys); ts.sys.startRecord("' + fn + '");' , 'ts.sys.endRecord();' ) ;
6+ instrument ( tscPath , `
7+ ts.sys = Playback.wrapSystem(ts.sys);
8+ ts.sys.startRecord("${ fn } ");` , `ts.sys.endRecord();` ) ;
79}
810
911function instrumentForReplay ( logFilename : string , tscPath : string ) {
10- instrument ( tscPath , 'ts.sys = Playback.wrapSystem(ts.sys); ts.sys.startReplay("' + logFilename + '");' ) ;
12+ instrument ( tscPath , `
13+ ts.sys = Playback.wrapSystem(ts.sys);
14+ ts.sys.startReplay("${ logFilename } ");` ) ;
1115}
1216
1317function instrument ( tscPath : string , prepareCode : string , cleanupCode : string = '' ) {
You can’t perform that action at this time.
0 commit comments