Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2383

Update CSE unified tests expectResult: null

    XMLWordPrintableJSON

Details

    Description

      Summary

      The current tests users expectResult: null however, it should use {"$$unsetOrMatches": null}.

      $$unsetOrMatches:

      This operator can be used anywhere a matched value is expected (including expectResult), excluding an array element because Arrays Must Contain the Same Number of Elements. The test runner MUST assert that the actual value either does not exist or matches the expected value. Matching the expected value MUST use the standard rules in Evaluating Matches, which means that it may contain special operators.

      This is because its testing the absence of a result and comparing against a Bson Null.

      Motivation

      Keeps the test runner to spec.

      Is this ticket only for tests?

      Yes

      Attachments

        Activity

          People

            Unassigned Unassigned
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: