Skip to content

Commit ba7ea5a

Browse files
added package.json
1 parent b32dcb9 commit ba7ea5a

File tree

5 files changed

+154
-0
lines changed

5 files changed

+154
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules
2+
3+
/.tmp
4+
/.sass-cache
5+
/bower_components

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "uiaccordion",
3+
"private": true,
4+
"devDependencies": {
5+
"grunt": "^0.4.5",
6+
"grunt-angular-templates": "^0.5.7",
7+
"grunt-autoprefixer": "^2.0.0",
8+
"grunt-concurrent": "^1.0.0",
9+
"grunt-contrib-clean": "^0.6.0",
10+
"grunt-contrib-concat": "^0.5.0",
11+
"grunt-contrib-connect": "^0.9.0",
12+
"grunt-contrib-copy": "^0.7.0",
13+
"grunt-contrib-cssmin": "^0.12.0",
14+
"grunt-contrib-htmlmin": "^0.4.0",
15+
"grunt-contrib-imagemin": "^0.9.2",
16+
"grunt-contrib-jshint": "^0.11.0",
17+
"grunt-contrib-uglify": "^0.7.0",
18+
"grunt-contrib-watch": "^0.6.1",
19+
"grunt-filerev": "^2.1.2",
20+
"grunt-google-cdn": "^0.4.3",
21+
"grunt-newer": "^1.1.0",
22+
"grunt-ng-annotate": "^0.9.2",
23+
"grunt-svgmin": "^2.0.0",
24+
"grunt-usemin": "^3.0.0",
25+
"grunt-wiredep": "^2.0.0",
26+
"jit-grunt": "^0.9.1",
27+
"jshint-stylish": "^1.0.0",
28+
"time-grunt": "^1.0.0"
29+
},
30+
"engines": {
31+
"node": ">=0.10.0"
32+
}
33+
}

test/.jshintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"bitwise": true,
3+
"browser": true,
4+
"curly": true,
5+
"eqeqeq": true,
6+
"esnext": true,
7+
"jasmine": true,
8+
"latedef": true,
9+
"noarg": true,
10+
"node": true,
11+
"strict": true,
12+
"undef": true,
13+
"unused": true,
14+
"globals": {
15+
"angular": false,
16+
"inject": false
17+
}
18+
}

test/karma.conf.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Karma configuration
2+
// http://karma-runner.github.io/0.12/config/configuration-file.html
3+
// Generated on 2015-07-23 using
4+
// generator-karma 1.0.0
5+
6+
module.exports = function(config) {
7+
'use strict';
8+
9+
config.set({
10+
// enable / disable watching file and executing tests whenever any file changes
11+
autoWatch: true,
12+
13+
// base path, that will be used to resolve files and exclude
14+
basePath: '../',
15+
16+
// testing framework to use (jasmine/mocha/qunit/...)
17+
// as well as any additional frameworks (requirejs/chai/sinon/...)
18+
frameworks: [
19+
"jasmine"
20+
],
21+
22+
// list of files / patterns to load in the browser
23+
files: [
24+
// bower:js
25+
'bower_components/angular/angular.js',
26+
'bower_components/angular-mocks/angular-mocks.js',
27+
// endbower
28+
"app/scripts/**/*.js",
29+
"test/mock/**/*.js",
30+
"test/spec/**/*.js"
31+
],
32+
33+
// list of files / patterns to exclude
34+
exclude: [
35+
],
36+
37+
// web server port
38+
port: 8080,
39+
40+
// Start these browsers, currently available:
41+
// - Chrome
42+
// - ChromeCanary
43+
// - Firefox
44+
// - Opera
45+
// - Safari (only Mac)
46+
// - PhantomJS
47+
// - IE (only Windows)
48+
browsers: [
49+
"PhantomJS"
50+
],
51+
52+
// Which plugins to enable
53+
plugins: [
54+
"karma-phantomjs-launcher",
55+
"karma-jasmine"
56+
],
57+
58+
// Continuous Integration mode
59+
// if true, it capture browsers, run tests and exit
60+
singleRun: false,
61+
62+
colors: true,
63+
64+
// level of logging
65+
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
66+
logLevel: config.LOG_INFO,
67+
68+
// Uncomment the following lines if you are using grunt's server to run the tests
69+
// proxies: {
70+
// '/': 'http://localhost:9000/'
71+
// },
72+
// URL root prevent conflicts with the site root
73+
// urlRoot: '_karma_'
74+
});
75+
};

test/spec/controllers/main.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
'use strict';
2+
3+
describe('Controller: MainCtrl', function () {
4+
5+
// load the controller's module
6+
beforeEach(module('uiGridApp'));
7+
8+
var MainCtrl,
9+
scope;
10+
11+
// Initialize the controller and a mock scope
12+
beforeEach(inject(function ($controller, $rootScope) {
13+
scope = $rootScope.$new();
14+
MainCtrl = $controller('MainCtrl', {
15+
$scope: scope
16+
// place here mocked dependencies
17+
});
18+
}));
19+
20+
it('should attach a list of awesomeThings to the scope', function () {
21+
expect(MainCtrl.awesomeThings.length).toBe(3);
22+
});
23+
});

0 commit comments

Comments
 (0)