Ticket: User Management M220JS (Test fails)

In the test:

Ticket: User Management

there is an specific option you must pass to insertOne statment, otherwise the test will never be passed. This option is:

{ forceServerObjectId: true }
(actually to fulfill challenge in this ticket you must add other thing, but this option is a must)

it happens that mogodb-nodejs driver, modifies the object passed to insertOne by adding _id field and this is the reason the test never will in the test:

expect(user).toEqual(testUser) (in user-management.test.js:38:4)

because this artificaly added field _id. This gets corrected adding the mentioned option to insertOne