Skip to content

Commit

Permalink
Merge pull request #537 from IBM/fix/test-pub400
Browse files Browse the repository at this point in the history
Ignore `created_by` field for objects in tests
  • Loading branch information
SanjulaGanepola authored Jul 9, 2024
2 parents b3d5bb7 + 90f941f commit 663c8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testing/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export namespace testUtil {
*/
export function assertIBMiObject(actual: IBMiObject, expected: IBMiObject) {
for (const [key, value] of (Object.entries(expected))) {
// Ignore timestamps and size which will vary
if (key in ['changed', 'created', 'size']) {
// Ignore fields which will vary
if (['changed', 'created', 'size', 'created_by'].includes(key)) {
continue;
}

Expand Down

0 comments on commit 663c8a9

Please sign in to comment.