我正在尝试完成Jasmine测试(使用Karma和IntelliJ13)来验证JSON文件。理想情况下,我的测试将简单地将JSON文件加载到数据对象中,然后让我解析以检查有效的格式和数据。我不需要在之前或之后验证函数,也不需要针对服务器进行测试。我的基本设置是这样的:it("shouldloadanexternalfile",function(){varasyncCallComplete,result,_this=this;//asyncCallCompleteissettotruewhentheajaxcalliscompleteasyncCallComplete=false;//r