UNPKG

angular-auto-validate

Version:

An automatic validation module for AngularJS which gets rid of excess html in favour of dynamic element modification to notify the user of validation errors

92 lines (66 loc) 2.5 kB
var shared = function (config) { 'use strict'; config.set({ // base path, that will be used to resolve files and exclude basePath: '../', // frameworks to use frameworks: ['chai', 'mocha', 'sinon'], preprocessors: { 'src/**/*.js': ['coverage'] }, // list of files to exclude exclude: [ ], // test results reporter to use // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' reporters: ['progress', 'coverage'], coverageReporter: { type: 'html', dir: 'tests/reports/coverage/' }, // enable / disable colors in the output (reporters and logs) colors: true, // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG logLevel: config.LOG_INFO, // enable / disable watching file and executing tests whenever any file changes autoWatch: false, // Start these browsers, currently available: // - Chrome // - ChromeCanary // - Firefox // - Opera // - Safari (only Mac) // - PhantomJS // - IE (only Windows) //browsers: ['PhantomJS', 'Chrome', 'Safari', 'Firefox'], browsers: ['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: true }); }; shared.files = [ // 3rd party libraries 'bower_components/jQuery/dist/jquery.js', 'bower_components/angular/angular.js', 'tests/browserTrigger.js', // app libraries 'src/jcs-auto-validate.js', 'src/providers/validator.js', 'src/services/bootstrap3ElementModifier.js', 'src/services/debounce.js', 'src/services/defaultErrorMessageResolver.js', 'src/services/foundation5ElementModifier.js', 'src/services/validationManager.js', 'src/directives/autoValidateFormOptions.js', 'src/directives/formReset.js', 'src/directives/registerCustomFormControl.js', 'src/config/ngSubmitDecorator.js', 'src/config/ngModelDecorator.js', 'src/jcs-auto-validate-run.js', 'src/jcs-auto-validate-run.js' ]; module.exports = shared;