-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.6.9
-
Component/s: None
When checking the expected results in the unified test runner for embedded documents, there is a case where the keys do not need to be identical. look in the depth > 1 if block. And use the below assertion.
// Don't check for full key set equality because some of the actual keys // might be e.g. $$unsetOrMatches, which can be omitted. expect( actualKeys.filter(key => !expectedKeys.includes(key)), `[${Object.keys(actual)}] has more than the expected keys: [${Object.keys(expected)}]` ).to.have.lengthOf(0);