For stubbing you dont need to store the `stub` in a var. It's enough with `sinon.stub(DownloadUI, 'show', fu...` and then `DownloadUI.show.restore()`