});
describe('crmAddName', function () {
- var scope;
var element;
beforeEach(function() {
});
});
});
+
+ describe('CaseTypeListCtrl', function () {
+ var caseTypes;
+
+ beforeEach(function () {
+ caseTypes = {
+ values: {
+ 1: { id: 1 },
+ 2: { id: 2 },
+ 3: { id: 3 }
+ }
+ };
+ scope = $rootScope.$new();
+ ctrl = $controller('CaseTypeListCtrl', {
+ $scope: scope,
+ caseTypes: caseTypes
+ });
+ });
+
+ it('should store an index of case types', function() {
+ expect(scope.caseTypes).toEqual(caseTypes.values);
+ });
+ });
});