我正在用摩卡、柴和猫鼬为我的Node.js应用程序编写单元测试。如果集合是空的(按需要),那么测试本身就能工作,但是在测试之前,我在清除集合时遇到了问题。
let mongoose = require("mongoose");
let Subject = require('../Subject/subject');
//Require the dev-dependencies
let chai = require('chai');
let chaiHttp = require('chai-http');
// let serve
我遇到了让旋转木马正常工作的问题。我使用yeomen搭建了angular应用程序。我得到了这个错误
Error: [$compile:ctreq] Controller 'carousel', required by directive 'slide', can't be found!
http://errors.angularjs.org/1.2.26/$compile/ctreq?p0=carousel&p1=slide
at http://localhost:9000/bower_components/angular/angular