{"size": 993, "ext": "js", "max_stars_repo_path": "app/test/ui/admin/groupManage/delete/delete.js", "max_stars_repo_name": "ricktao/pulsar-reporting-ui", "max_stars_repo_stars_event_min_datetime": "2015-11-05T06:18:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-28T15:06:28.000Z", "max_issues_repo_path": "app/test/ui/admin/groupManage/delete/delete.js", "max_issues_repo_name": "ricktao/pulsar-reporting-ui", "max_issues_repo_issues_event_min_datetime": "2017-03-19T05:19:07.000Z", "max_issues_repo_issues_event_max_datetime": "2017-03-19T06:10:24.000Z", "max_forks_repo_path": "app/test/ui/admin/groupManage/delete/delete.js", "max_forks_repo_name": "ricktao/pulsar-reporting-ui", "max_forks_repo_forks_event_min_datetime": "2015-11-10T15:22:43.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-03T11:12:09.000Z"}
{"max_stars_count": 61, "max_issues_count": 1, "max_forks_count": 16, "avg_line_length": 28.3714285714, "max_line_length": 81, "alphanum_fraction": 0.5055387714}
/*******************************************************************************
 *  Copyright (C) 2012-2015 eBay Software Foundation
 *  This program is dual licensed under the MIT and Apache 2.0 licenses.
 *  Please see LICENSE for more information.
 *******************************************************************************/
describe('pr.ui.admin.groupManage.delete', function() {

  var scope;

  beforeEach(function() {
    module('pr.ui.admin');
    module(function($provide) {
      $provide.factory('$modalInstance', function() {
        return {
          close:function() {},
          dismiss:function() {}
        };
      });
    });

    //inject dependencies
    inject(function($rootScope, $q, $controller, $modalInstance) {
      q = $q;
      scope = $rootScope.$new();
      $controller('GroupDeleteDialogController', {$scope: scope});
    });

  });

  it('ensure save and cancel can be invoked safely', function() {
    scope.close();
    scope.confirm();
  });

});