feature/IO-2769-Job-Totals-testing: Allow for both american and canadian capture + tests
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user