Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gareth Bowen <[email protected]>
  • Loading branch information
1yuv and garethbowen authored Jul 31, 2023
1 parent ef55ff5 commit 12c59de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/services/report/smsparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const fieldParsers = {
if (formattedAndValidatedPhone) {
return formattedAndValidatedPhone;
} else {
logger.error(`The provided phone number ${raw} is invalid`);
logger.warn(`The provided phone number ${raw} is invalid`);
return null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/tests/mocha/services/report/smsparser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('sms parser', () => {
[['NP 20 +918750660880 Prajwol', '+918750660880'],
['NP 20 +254773087889 Prajwol', '+254773087889'],
['NP 20 +255712262987 Prajwol', '+255712262987']].forEach(phoneNumerWithParsed => {
it('returns parsed number if valid phone of another the region', () => {
it(`returns parsed number if valid phone of another the region: ${phoneNumerWithParsed[0]}`, () => {
const doc = { message: phoneNumerWithParsed[0] };
const def = definitions.forms.NP;
sinon.stub(config, 'getAll').returns({
Expand Down

0 comments on commit 12c59de

Please sign in to comment.