Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .idea/AngularLocalStorage.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"jasmine": true,
"globals": {
"angular": false,
"inject": false
}
}
104 changes: 52 additions & 52 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
// Karma configuration

module.exports = function ( config ) {
config.set({
// base path, that will be used to resolve files and exclude
basePath : '',

frameworks : ['jasmine'],

// list of files / patterns to load in the browser
files : [
'components/angular/angular.js', 'components/angular-cookies/angular-cookies.js', 'components/angular-mocks/angular-mocks.js', 'src/*.js', 'test/*.spec.js'
],

// list of files to exclude
exclude : [],

// test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters : ['progress'],

// web server port
port : 9876,

// cli runner port
runnerPort : 9100,

// enable / disable colors in the output (reporters and logs)
colors : true,

// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel : 'karma.LOG_INFO',

// enable / disable watching file and executing tests whenever any file changes
autoWatch : true,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers : ['Chrome', 'PhantomJS'],

// If browser does not capture in given timeout [ms], kill it
captureTimeout : 60000,

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun : false
});
module.exports = function (config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',

frameworks: ['jasmine'],

// list of files / patterns to load in the browser
files: [
'components/angular/angular.js', 'components/angular-cookies/angular-cookies.js', 'components/angular-mocks/angular-mocks.js', 'src/*.js', 'test/*.spec.js'
],

// list of files to exclude
exclude: [],

// test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters: ['progress'],

// web server port
port: 9876,

// cli runner port
runnerPort: 9100,

// enable / disable colors in the output (reporters and logs)
colors: true,

// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: 'karma.LOG_INFO',

// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['Chrome', 'PhantomJS'],

// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false
});
};
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name":"angularLocalStorage",
"repository" : {
"type" : "git",
"url" : "https://github.com/agrublev/angularLocalStorage.git"
},
"devDependencies": {
"karma": "~0.11.14",
"karma-jasmine": "~0.1",
"karma-phantomjs-launcher": "~0.1.4"
},
"engines": {
"npm": ">=1.3.7",
"node": ">=0.10"
},
"scripts": {
"test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
}
"name": "angularLocalStorage",
"repository": {
"type": "git",
"url": "https://github.com/agrublev/angularLocalStorage.git"
},
"devDependencies": {
"karma": "~0.11.14",
"karma-jasmine": "~0.1",
"karma-phantomjs-launcher": "~0.1.4"
},
"engines": {
"npm": ">=1.3.7",
"node": ">=0.10"
},
"scripts": {
"test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
}
}
Loading