Skip to content

Commit

Permalink
Merge branch 'master' into nrpti-1223-add-test-for-act-name-in-nrced
Browse files Browse the repository at this point in the history
  • Loading branch information
acatchpole authored May 28, 2024
2 parents 6d73779 + 1ec544c commit c60f458
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 101 deletions.
271 changes: 183 additions & 88 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"csvtojson": "2.0.10",
"db-migrate": "^0.11.13",
"db-migrate-mongodb": "1.5.0",
"express": "^4.18.2",
"express": "^4.19.2",
"jwks-rsa": "1.6.0",
"moment": "^2.29.4",
"moment-timezone": "^0.5.43",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('AdministrativePenalty', () => {
description: ''
});

const result = administrativePenalty.transformRecord(baseCsvRow);
const result = administrativePenalty.transformRecord(baseCsvRow, actName);

expect(result).toEqual(expectedResult);
});
Expand All @@ -112,7 +112,7 @@ describe('AdministrativePenalty', () => {
description: 'Although a contravention occurred, a penalty was not assessed. See the attached document for additional details.'
});

const result = administrativePenalty.transformRecord(baseCsvRow);
const result = administrativePenalty.transformRecord(baseCsvRow, actName);

expect(result).toEqual(expectedResult);
});
Expand All @@ -126,7 +126,7 @@ describe('AdministrativePenalty', () => {
description: 'No contravention was found to have occurred, and no penalty was assessed. See the attached document for additional details.'
});

const result = administrativePenalty.transformRecord(baseCsvRow);
const result = administrativePenalty.transformRecord(baseCsvRow, actName);

expect(result).toEqual(expectedResult);
});
Expand Down
Loading

0 comments on commit c60f458

Please sign in to comment.