我正在为主干View编写测试,以测试在获取模型后是否调用了渲染函数。测试是:beforeEach(function(){$('body').append('');profileView=newProfileView();});it('shouldcalltherenderfunctionafterthemodelhasbeenfetched',function(done){profileView.model=newUserModel({md5:'d7263f0d14d66c349016c5eabd4d2b8c'});varspy=sinon.spy(profileView,'rende