mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix(test): add slice method to filename to make them portable (#16482)
In order for test cases to pass regardless of each individual's environment, this commit adds calls to `slice` method when printing the filenames so we can avoid getting `console.log` to truncate them. Fixes #16305
This commit is contained in:
parent
05eb4d1084
commit
80ed54a4b6
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ addEventListener("error", (event) => {
|
|||
console.log({
|
||||
cancelable: event.cancelable,
|
||||
message: event.message,
|
||||
filename: event.filename,
|
||||
filename: event.filename?.slice?.(-100),
|
||||
lineno: event.lineno,
|
||||
colno: event.colno,
|
||||
error: event.error,
|
||||
|
|
|
@ -2,7 +2,7 @@ addEventListener("error", (event) => {
|
|||
console.log({
|
||||
cancelable: event.cancelable,
|
||||
message: event.message,
|
||||
filename: event.filename,
|
||||
filename: event.filename?.slice?.(-100),
|
||||
lineno: event.lineno,
|
||||
colno: event.colno,
|
||||
error: event.error,
|
||||
|
|
Loading…
Reference in a new issue