无法对角度示例项目运行测试

时间:2016-06-05 20:13:43

标签: javascript angularjs node.js angular-material

我克隆了Angular Material-Start项目。正如文件所说:

  

运行npm run tests以启动所有Karma单元测试。   但是这个问题给了我一个错误:

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\DevSoft\\NodeJs\\node.exe" "C:\\Users\\Taras\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "tests"
npm ERR! node v5.7.1
npm ERR! npm  v3.8.9

npm ERR! missing script: tests
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:

我做错了什么?我该如何运行测试?

1 个答案:

答案 0 :(得分:1)

package.json文件中没有 if($("#norA").is(":checked") && $("#norB").is(":checked")){ $("#nors").html("off"); } else{ $("#nors").html("on"); } 脚本:

https://github.com/angular/material-start/blob/master/package.json

测试已被禁用:

https://github.com/angular/material-start/commit/3a525fe89581c5b945388c1714ca3e4b64027d1e

相关问题