コントローラーのテストを機能させる方法がわかりません。私はngStartシードプロジェクトで遊んでいます。そこで、リポジトリ ( https://github.com/Havrl/ngStart ) をフォークし、非常に基本的な単体テストを作成したいと考えています。
私のコントローラーテストファイル:
define(function() {
"use strict";
describe("the contactcontroller", function () {
var contactController, scope;
beforeEach(function () {
module("contact");
inject(["ContactController", function (_contactController) {
contactController = _contactController;
}]);
});
it("should give me true", function () {
expect(true).toBe(true);
});
});
});
しかし、それは機能していません。
私は何が欠けていますか?