【发布时间】:2015-01-25 13:36:24
【问题描述】:
这是我的代码:
app.factory('assignmentAttachments', function() {
});
describe("test", function() {
// arrange variable
var assignmentAttachments;
// inject service
beforeEach(inject(function(_assignmentAttachments_) {
assignmentAttachments = _assignmentAttachments_;
}));
describe("test", function() {
it("test", function() {
// arrange
})
});
});
我收到以下错误:
错误:[$injector:unpr] 未知提供者: assignmentAttachmentsProvider http://errors.angularjs.org/1.2.27/$injector/unpr?p0=assignmentAttachmentsProvider%20%3C-%20assignmentAttachments
【问题讨论】:
标签: javascript angularjs jasmine