mock.restoreAll()


此函数恢复此 MockTracker 之前创建的所有模拟的默认行为。 与 mock.reset() 不同,mock.restoreAll() 不会取消模拟与 MockTracker 实例的关联。

This function restores the default behavior of all mocks that were previously created by this MockTracker. Unlike mock.reset(), mock.restoreAll() does not disassociate the mocks from the MockTracker instance.