Skip to content

Commit 661a8c4

Browse files
author
robin
committed
Extra comments
1 parent 5c934ce commit 661a8c4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/__tests__/helpers.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ function modifyListNegativeIdCheck(expected){
4040
})
4141
}
4242

43+
/**
44+
* Checks if 2 objects are the same ignoring negative ids
45+
* @param object - The first object you want to compare
46+
* @param toEqual - The second object you want to compare the first object to
47+
* @param expect - The expect of the test to do the actual comparison
48+
* @param bool - True if the objects should be the same, false otherwise (default: true)
49+
*/
4350
export function compareObjectsIgnoringNegativeIds(object, toEqual, expect, bool = true){
4451
const expected = toEqual
4552
modifyObjectNegativeIdCheck(expected);

0 commit comments

Comments
 (0)