Viewing File: /usr/local/cpanel/3rdparty/share/angular-chosen/1.4.0/test/support/specHelper.js

beforeEach(function() {
  angular.module('testApp', [
    'localytics.directives',
    'caseConvertFilter',
    'chosenSelectHelper'
  ]);

  angular.mock.module('testApp');
});

var $scope;
var $timeout;
var $compile;
var chosenSelectHelper;

/**
 * Assigns $scope, $timeout and $compile, these will be used in every test.
 */
beforeEach(inject(function(_$rootScope_, _$timeout_, _$compile_, _chosenSelectHelper_) {
  $scope = _$rootScope_.$new();
  $timeout = _$timeout_;
  $compile = _$compile_;
  chosenSelectHelper = _chosenSelectHelper_;
}));
Back to Directory File Manager