Skip to content

Clarify asserting equality of objects and arrays

Rodrigo Muino Tomonari requested to merge github/fork/bessbd/patch-1 into master

Some people might expect assert.deepStrictEqual() is to be used only for nested objects, but that is not correct.

This change adds some clarification, because assert.deepStrictEqual() should be used for all objects and arrays even if they are flat.

See https://github.com/nodejs/node/issues/31263 for further reference.

Checklist

Merge request reports

Loading