Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ const date = dayjs().format("YYYY_MM_DD__HH-mm-ss");

// Append data to a CSV file
fs.appendFileSync(
`screenshots/${date}/audit.csv`,
`URL A, URL B, Path to diff file, # of pixels difference, Status, Notes\n`
`screenshots/${date}/audit-${date}.csv`,
`sep=,\nURL A, URL B, Path to diff file, # of pixels difference, Status, Notes\n`
);

// Create an array that holds the pages that have non-acceptable differences
Expand Down Expand Up @@ -121,7 +121,7 @@ const date = dayjs().format("YYYY_MM_DD__HH-mm-ss");

// Append data to a CSV file
fs.appendFileSync(
`screenshots/${date}/audit.csv`,
`screenshots/${date}/audit-${date}.csv`,
`${url.a},${url.b},${i + 1}/diff.png,${diffAmount},${
diffAmount <= config.nonacceptableDiff ? "Pass" : "Fail"
},""\n`
Expand Down Expand Up @@ -149,7 +149,7 @@ const date = dayjs().format("YYYY_MM_DD__HH-mm-ss");
log(`\n\n🎉 Audit complete!`);
log(
`You can view a full report of this audit at ${chalk.green(
`screenshots/${date}/audit.csv`
`screenshots/${date}/audit-${date}.csv`
)}`
);
})();