fix order dependency bug in unit test stub cleanup
- SYMTPOM: unit tests that involve sinon setup/cleanup pass in a non-deterministic fashion
- CAUSE: some cleanup steps fail based on the order in which their test suite was run
- FIX: prefer a top-level
afterEach(() => sinon.restore()
to restoring each individual stub
Edited by aguestuser