feature/IO-2769-Job-Totals-testing: Allow for both american and canadian capture + tests
This commit is contained in:
@@ -38,7 +38,7 @@ exports.totalsSsu = async function (req, res) {
|
|||||||
const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true);
|
const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true);
|
||||||
|
|
||||||
// Capture fixture data (input and output), using job.id for the filename.
|
// 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);
|
captureFixture(inputForTotals, newTotals);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ exports.totalsSsu = async function (req, res) {
|
|||||||
const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true);
|
const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true);
|
||||||
|
|
||||||
// Capture fixture data (input and output), using job.id for the filename.
|
// 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);
|
captureFixture(inputForTotals, newTotals);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user