Skip to content

Commit 6dea2fb

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

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

.gitmodules

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

component.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
"author": "AngularUI Team",
3-
"name": "angular-ui",
4-
"description": "AngularUI - Companion Suite for AngularJS",
2+
"author": "AngularUI",
3+
"name": "angular-select2",
54
"version": "0.4.0",
65
"homepage": "http://angular-ui.github.com",
7-
"keywords": ['angular', 'angularui', 'select2'],
6+
"keywords": [ "angular", "angularui", "select2" ],
87
"repository": {
98
"type": "git",
109
"url": "git://github.com/angular-ui/angular-ui.git"
1110
},
12-
"main": "./build/angular-ui.min.js",
11+
"main": "./select2.js",
1312
"dependencies": {
1413
"jquery": ">= 1.8.0",
1514
"angular": ">= 1.0.2",

libs/angular.js

Submodule angular.js added at d534650

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)