Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3637

Unskip BSON Corpus parseErrors tests js-bson 4.x

      Use Case

      As a node driver engineer
      I want to run all the tests that assert what an incorrect format is
      So that we don't permit variations in valid input

      User Impact

      *What is the number of impacted customers? How severe is the impact? Is anyone blocked or broken?

      • Any dependent library doesn't share the specification assertions on what incorrectly formatted EJSON looks like.

        Dependencies

      • upstream and/or downstream requirements and timelines to bear in mind
      • BSON Corpus tests

      Unknowns

      • questions that need to be answered to determine implementation
      • Will adding validation introduce significant breaking changes

      Acceptance Criteria

      Implementation Requirements

      • fromExtendedJSON and toExtendedJSON methods will all likely need changes that involve checking typeof values and throwing for the tests cases. 

      Testing Requirements

      • Unskip all the parseErrors tests that are currently skipped.

      Documentation Requirements

      • n/a

      Follow Up Requirements

      • n/a

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: