Skip to content

Commit 2a44e60

Browse files
committedMar 4, 2025·
updated snapshots to use unix-style paths
1 parent 623a6c6 commit 2a44e60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/repl/__tests__/__snapshots__/transpiler.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ exports[`Nothing should be written to disk if no output file was specified 1`] =
9393
const builtins = native.operators.get(\\"builtins\\");
9494
native.evaller = program => eval(program);
9595
undefined;
96-
binaryOp(\\"+\\", 4, 1, 1, 1, 0, \\"C:\\\\\\\\source\\\\\\\\source_academy\\\\\\\\js-slang\\\\\\\\test.js\\");
96+
binaryOp(\\"+\\", 4, 1, 1, 1, 0, \\"/Users/henz/Repos/SourceAcademy/js-slang/test.js\\");
9797
}
9898
}
9999
"
@@ -192,7 +192,7 @@ exports[`Writing to file 1`] = `
192192
const builtins = native.operators.get(\\"builtins\\");
193193
native.evaller = program => eval(program);
194194
undefined;
195-
binaryOp(\\"+\\", 4, 1, 1, 1, 0, \\"C:\\\\\\\\source\\\\\\\\source_academy\\\\\\\\js-slang\\\\\\\\test.js\\");
195+
binaryOp(\\"+\\", 4, 1, 1, 1, 0, \\"/Users/henz/Repos/SourceAcademy/js-slang/test.js\\");
196196
}
197197
}
198198
"

‎src/repl/__tests__/transpiler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test('Nothing should be written if the program has parser errors', async () => {
2222
expect(fs.writeFile).toHaveBeenCalledTimes(0)
2323

2424
expectWritten(process.stderr.write).toMatchInlineSnapshot(
25-
`"[C:\\\\test.js] Line 1: Missing semicolon at the end of statement"`
25+
`"[/test.js] Line 1: Missing semicolon at the end of statement"`
2626
)
2727
})
2828

@@ -32,7 +32,7 @@ test('Nothing should be written if the program has transpiler errors', async ()
3232
expect(fs.writeFile).toHaveBeenCalledTimes(0)
3333

3434
expectWritten(process.stderr.write).toMatchInlineSnapshot(
35-
`"[C:\\\\test.js] Line 1: Name a not declared."`
35+
`"[/test.js] Line 1: Name a not declared."`
3636
)
3737
})
3838

0 commit comments

Comments
 (0)
Please sign in to comment.