Skip to content

Commit 92733e3

Browse files
author
Dean Sofer
committed
chore(tests): Setting up test env
1 parent 35abf1d commit 92733e3

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "libs/select2"]
2+
path = libs/select2
3+
url = git://github.com/ivaynberg/select2.git

libs/select2

Submodule select2 added at 6ea386b

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This change is so that you do not have to do an additional query yourself on top of Select2's own query
66
* @params [options] {object} The configuration options passed to $.fn.select2(). Refer to the documentation
77
*/
8-
angular.module('ui.directives').directive('uiSelect2', ['ui.config', '$timeout', function (uiConfig, $timeout) {
8+
angular.module('ui.select2', []).directive('uiSelect2', ['ui.config', '$timeout', function (uiConfig, $timeout) {
99
var options = {};
1010
if (uiConfig.select2) {
1111
angular.extend(options, uiConfig.select2);

tests/test.conf.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
basePath = '..';
2+
files = [
3+
JASMINE,
4+
JASMINE_ADAPTER,
5+
'libs/angular.js/angular.js',
6+
'libs/select2/select2.js',
7+
'tests/*.js',
8+
'*.js'
9+
];
10+
runOnce = true;

0 commit comments

Comments
 (0)