Skip to content

Commit 62b9b55

Browse files
committed
use sting templates
1 parent 90273f9 commit 62b9b55

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/harness/instrumenter.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ var fs: any = require('fs');
33
var path: any = require('path');
44

55
function 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

911
function 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

1317
function instrument(tscPath: string, prepareCode: string, cleanupCode: string = '') {

0 commit comments

Comments
 (0)