--- /dev/null
+{
+ "indent": 2,
+ "jasmine": true,
+ "predef": [
+ "angular",
+ "inject",
+ "module",
+
+ "CRM"
+ ],
+ "-W097": true
+}
\ No newline at end of file
-describe('crmAutosave', function() {
+'use strict';
- function using(name, values, func) {
- for (var i = 0, count = values.length; i < count; i++) {
- if (Object.prototype.toString.call(values[i]) !== '[object Array]') {
- values[i] = [values[i]];
- }
- func.apply(this, values[i]);
- jasmine.currentEnv_.currentSpec.description += ' (with "' + name + '" using ' + values[i].join(', ') + ')';
- }
- }
+describe('crmAutosave', function() {
beforeEach(function() {
module('crmUtil');
}));
it('should load activity statuses', function() {
- expect(scope.activityStatuses).toEqualData([apiCalls['actStatuses']['values']['272'], apiCalls['actStatuses']['values']['273']]);
+ expect(scope.activityStatuses).toEqualData([apiCalls.actStatuses.values['272'], apiCalls.actStatuses.values['273']]);
});
it('should load activity types', function() {
- expect(scope.activityTypes).toEqualData(apiCalls['actTypes']['values']);
+ expect(scope.activityTypes).toEqualData(apiCalls.actTypes.values);
});
it('addActivitySet should add an activitySet to the case type', function() {
beforeEach(function() {
navigator = jasmine.createSpyObj('crmNavigator', ['redirect']);
module(function ($provide) {
- $provide.value('crmNavigator', navigator)
+ $provide.value('crmNavigator', navigator);
});
inject(['crmLegacy', function(crmLegacy) {
crmLegacy.url({back: '/*path*?*query*', front: '/*path*?*query*'});