Add a sinon.restore call to global mocha afterEach hook

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... driver engineer
      I want... to add a call to sinon.restore to the global mocha afterEach hook
      So that... sinon stubs and fakes are always cleaned up after each test

      User Impact

      • None, this is for us

      Dependencies

      • None

      Unknowns

      • How many tests exist that share a sinon stub/fake that will need to be updated

      Acceptance Criteria

      Implementation Requirements

      • remove all calls to sinon.restore in our unit tests
      • add a call to sinon.restore in the global mocha afterEach hook
      • clean up any tests which break as a result of these changes

      Testing Requirements

      • N/A

      Documentation Requirements

      • N/A

      Follow Up Requirements

      • None

              Assignee:
              Unassigned
              Reporter:
              Warren James (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: