File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 11// Karma configuration
2- // Generated on Fri Feb 07 2014 08:31:06 GMT+0100 (CET)
2+
3+ var fs = require ( 'fs' ) ;
4+ var path = require ( 'path' ) ;
5+ var origin = fs . existsSync ( path . resolve ( __dirname , '../angular-schema-form-bootstrap/dist/angular-schema-form-bootstrap.js' ) ) ;
6+ var include = ( origin )
7+ ? '../angular-schema-form-bootstrap/dist/angular-schema-form-bootstrap.js'
8+ : 'dist/angular-schema-form-bootstrap.js' ;
9+ console . log ( "Karma bootstrap:" + origin ) ;
10+
311module . exports = function ( config ) {
412 config . set ( {
513 // base path, that will be used to resolve files and exclude
@@ -16,8 +24,9 @@ module.exports = function(config) {
1624 'test/lib/angular-mocks.js' ,
1725 'bower_components/tv4/tv4.js' ,
1826 'dist/angular-schema-form.js' ,
19- 'dist/angular-schema-form-bootstrap.js' ,
27+ include ,
2028 'src/**/*.spec.js'
29+ //'src/**/sf-schema.directive.spec.js'
2130 ] ,
2231
2332 // list of files to exclude
You can’t perform that action at this time.
0 commit comments