feature/IO-2769-Job-Totals-testing: Allow for both american and canadian capture + tests

This commit is contained in:
Dave Richer
2025-04-04 13:45:45 -04:00
parent 27a3932c08
commit 8323fa6696

View File

@@ -10,7 +10,6 @@ const fixtureDir = path.join(__dirname, "..", "test", "fixtures", "job-totals");
* @returns {*}
*/
const serializeDinero = (key, value) => {
// If the value has a toObject method (as in Dinero instances), use it.
if (value && typeof value === "object" && typeof value.toObject === "function") {
return value.toObject();
}
@@ -28,7 +27,6 @@ const captureFixture = (inputData, outputData, environment) => {
fs.mkdirSync(fixtureDir, { recursive: true });
}
// Use job.id to label the file.
const fileName = `${inputData.id}.json`;
const filePath = path.join(fixtureDir, fileName);