Commit da8f0cf5 authored by totten's avatar totten

INFRA-132 - Add .jshintrc. Cleanup tests/karama/unit.

parent 28c8af24
{
"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');
......
......@@ -167,11 +167,11 @@ describe('crmCaseType', function() {
}));
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() {
......
......@@ -14,7 +14,7 @@ describe('crmMailing', 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*'});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment