AngularJS单元测试pascalprecht.translate不可用

AngularJS单元测试pascalprecht.translate不可用,angularjs,unit-testing,Angularjs,Unit Testing,未捕获错误:[$injector:nomod]模块“pascalprecht.translate”不可用!您要么拼错了模块名,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。 $injector/nomod?p0=pascalprecht.translate (匿名功能) (匿名功能) 确保 模块 角度模块 (匿名功能) (匿名功能) (匿名函数) 我已在index.html中包括: “../js/angular translate/*.js” 在app.module:angula

未捕获错误:[$injector:nomod]模块“pascalprecht.translate”不可用!您要么拼错了模块名,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。 $injector/nomod?p0=pascalprecht.translate (匿名功能)
(匿名功能)
确保
模块
角度模块
(匿名功能)
(匿名功能)
(匿名函数)

我已在index.html中包括: “../js/angular translate/*.js”


在app.module:angular.module('app name',[…,'pascalprecht.translate',])

你能检查一下在chrome开发工具
Sources
选项卡中js文件是否正确加载吗?我有以下目录结构:>base>app name>other folders>somefiles,这里我缺少模块文件。这可能是问题所在吗?你能检查一下chrome开发工具
Sources
选项卡中是否正确加载了js文件吗?我有以下目录结构:>base>app name>other folders>somefiles,这里我缺少模块文件。这可能是问题所在吗?