Skip to content

Commit

Permalink
PYIC-7936: remove missed console logs and old test
Browse files Browse the repository at this point in the history
  • Loading branch information
thebauSoftwire committed Jan 13, 2025
1 parent 48a9db6 commit 3c9f2c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion api-tests/features/p2-strategic-app.feature
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ Feature: M2B Strategic App Journeys
Then I get a 'non-uk-passport' page response
When I submit a 'next' event
Then I get a 'identify-device' page response
And an 'IPV_INTERNATIONAL_ADDRESS_START' audit event was recorded [local only]
When I submit an 'appTriage' event
Then I get a 'pyi-triage-select-device' page response
When I submit a 'computer-or-tablet' event
Expand Down
2 changes: 0 additions & 2 deletions api-tests/src/steps/ipv-steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,6 @@ Then(
const expectedEvents = await getAuditEventsForJourneyType(journeyName);
const actualEvents = await auditClient.getAuditEvents(this.userId);

console.log(JSON.stringify(actualEvents));

const comparisonResult = compareAuditEvents(actualEvents, expectedEvents);
assert.ok(
comparisonResult.isPartiallyEqual,
Expand Down
10 changes: 2 additions & 8 deletions api-tests/src/utils/object-matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ export const comparePartialEqualityBetweenObjects = (
): ObjectPartialEqualityResult => {
for (const [expectedKey, expectedValue] of Object.entries(expectedObject)) {
if (actualObject[expectedKey] === undefined) {
console.log(
`Expected ${expectedKey} to be a property in object ${actualObject}`,
);
return {
isPartiallyEqual: false,
errorMessage: `Expected ${expectedKey} to be a property in object ${actualObject}`,
errorMessage: `Expected ${expectedKey} to be a property in ${actualObject}`,
};
}

Expand All @@ -35,12 +32,9 @@ export const comparePartialEqualityBetweenObjects = (
}

if (expectedValue !== actualObject[expectedKey]) {
console.log(
`Expected ${expectedValue} for index ${expectedKey} but got ${actualObject[expectedKey]}`,
);
return {
isPartiallyEqual: false,
errorMessage: `Expected ${expectedValue} for index ${expectedKey} but got ${actualObject[expectedKey]}`,
errorMessage: `Expected ${expectedValue} for field ${expectedKey} but got ${actualObject[expectedKey]}`,
};
}
}
Expand Down

0 comments on commit 3c9f2c0

Please sign in to comment.