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

This commit is contained in:
Dave Richer
2025-04-04 14:15:30 -04:00
parent 1463037878
commit f777d26cc1
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ exports.totalsSsu = async function (req, res) {
const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true);
// Capture fixture data (input and output), using job.id for the filename.
if (process.env?.SAVE_TOTALS_DATA) {
if (process.env?.SAVE_TOTALS_DATA === "true") {
captureFixture(inputForTotals, newTotals);
}

View File

@@ -38,7 +38,7 @@ exports.totalsSsu = async function (req, res) {
const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true);
// Capture fixture data (input and output), using job.id for the filename.
if (process.env?.SAVE_TOTALS_DATA) {
if (process.env?.SAVE_TOTALS_DATA === "true") {
captureFixture(inputForTotals, newTotals);
}