Skip to content

Commit d9112f5

Browse files
committed
use resolvePath to handel relative references correctelly
1 parent 7ae902d commit d9112f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/harness/loggedIO.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ module Playback {
270270
}
271271

272272
function findResultByPath<T>(wrapper: { resolvePath(s: string): string }, logArray: { path: string; result?: T }[], expectedPath: string, defaultValue?: T): T {
273-
let normalizedName = ts.normalizeSlashes(expectedPath).toLowerCase();
273+
let normalizedName = ts.normalizePath(expectedPath).toLowerCase();
274274
// Try to find the result through normal fileName
275275
for (let i = 0; i < logArray.length; i++) {
276276
if (ts.normalizeSlashes(logArray[i].path).toLowerCase() === normalizedName) {
@@ -286,6 +286,7 @@ module Playback {
286286
}
287287
}
288288
}
289+
289290
// If we got here, we didn't find a match
290291
if (defaultValue === undefined) {
291292
throw new Error("No matching result in log array for path: " + expectedPath);

0 commit comments

Comments
 (0)