UNPKG

angular-scroll-animate

Version:

An Angular.js directive which allows you to perform any javascript actions (in the controller, or on the element) when an element is scrolled into, or out of, the users viewport, without any other dependencies.

57 lines (47 loc) 1.46 kB
// Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // testing framework to use (jasmine/mocha/q unit/...) frameworks: ['jasmine'], // list of files / patterns to load in the browser files: [ 'bower_components/jquery/dist/jquery.js', 'bower_components/angular/angular.js', 'bower_components/underscore/underscore.js', 'bower_components/sinonjs/sinon.js', 'bower_components/jasmine-sinon/lib/jasmine-sinon.js', 'bower_components/angular-mocks/angular-mocks.js', 'src/**/*.html', 'src/**/*.js' ], exclude: [], port: 8080, logLevel: config.LOG_INFO, singleRun: true, autoWatch: false, // coverage reporter generates the coverage reporters: ['progress', 'coverage'], preprocessors: { 'src/!(*spec).js': ['coverage'], 'src/**/*.html': ['ng-html2js'] }, ngHtml2JsPreprocessor: { // you might need to strip the main directory prefix in the URL request stripPrefix: 'src/', moduleName: 'templates' }, // optionally, configure the reporter coverageReporter: { dir: 'coverage', subdir: '.', reporters: [ {type: 'text-summary'}, {type: 'lcov'}, {type: 'clover'} ] } }); };