This is a little bit magical here. I think we are doing this so that we can test that reload is called from the unit tests. Could we instead do a sinon.spy on navigator.location.reload?