'use strict';

describe('solrSettingsWarningCtrl', function() {

  var createController = null;
  var scope = null;

  beforeEach(module('splain-app'));

  beforeEach(function() {
   
    
    
    inject(function($rootScope, $controller) {

      createController = function() {
        scope = $rootScope.$new();
        return $controller('SolrSettingsWarningCtrl', {'$scope': scope});
      };
    });
  });

  var expectArgs = function(condensed, arg) {
    var args = [];
    angular.forEach(condensed, function(cArgs) {
      angular.forEach(cArgs, function(arg) {
        args.push(arg);
      });
    });
    expect(args).toContain(arg);
  };

  it('no warnings reported when no warnings...', function() {
    createController();
    var condensedWarnings = scope.warnings.messages('q=*:*');
    expect(scope.warnings.shouldWarn('q=*:*&fq=blah')).toBeFalsy();
    expect(Object.keys(condensedWarnings).length).toEqual(0);
  });

  it('no longer words on group', function() {
    createController();
    var condensedWarnings = scope.warnings.messages('group=true');
    var shouldWarn = scope.warnings.shouldWarn('group=true');
    expect(shouldWarn).toBe(false);
  });
  
  it('condenses warnings', function() {
    createController();
    var condensedWarnings = scope.warnings.messages('group=true&group.main=true');
    var shouldWarn = scope.warnings.shouldWarn('group=true&group.main=true');
    expect(shouldWarn).toBe(false);
  });
});


@@ -404,24 +404,26 @@
 );%0A  %7D);%0A%0A  
+/*
 var expectAr
@@ -450,24 +450,24 @@
 sed, arg) %7B%0A
-
     var args
@@ -646,16 +646,18 @@
 g);%0A  %7D;
+*/
 %0A%0A  it('
@@ -1001,32 +1001,34 @@
 ntroller();%0A    
+//
 var condensedWar
@@ -1237,36 +1237,38 @@
 teController();%0A
-
     
+//
 var condensedWar

Fix jshint complains