我有一个页面重新加载/导航和iframe至关重要的应用程序,这些部分似乎很难用单元测试覆盖。我希望能够写smt。像这样:it('shouldfireappropriatecallbacksonstartandpagereload',function(){app.start();expect(app.onStart).toHaveBeenCalled();page.reload();expect(app.onRestart).toHaveBeenCalled();}it('shouldknowwhetheritrunsiniframeornot',function(){expect(ap