@@ -316,12 +316,16 @@ describe('schemaForm', function() {
316316 } ) ;
317317
318318 describe ( '#appendRule() and #prependRule()' , function ( ) {
319+ beforeEach ( module ( 'schemaForm' ) ) ;
320+ beforeEach (
321+ module ( function ( $sceProvider ) {
322+ $sceProvider . enabled ( false ) ;
323+ } )
324+ ) ;
325+
319326 it ( 'should extend with new defaults' , function ( ) {
320327 module ( function ( schemaFormProvider ) {
321328 schemaFormProvider . prependRule ( 'string' , function ( name , schema , options ) {
322- console . log ( 'RUN prependRule' ) ;
323- console . log ( 'Name:' + name ) ;
324- console . log ( JSON . stringify ( options ) ) ;
325329 if ( schema . format === 'foobar' ) {
326330 var f = schemaFormProvider . createStandardForm ( name , schema , options ) ;
327331 f . type = 'foobar' ;
@@ -361,8 +365,6 @@ console.log(JSON.stringify(options));
361365
362366 //no form is implicitly ['*']
363367 var defaults = schemaForm . defaults ( schema ) . form ;
364- console . log ( 'TEST schemaForm.defaults(schema)' ) ;
365- console . log ( JSON . stringify ( defaults [ 0 ] ) ) ;
366368 defaults [ 0 ] . type . should . be . equal ( 'foobar' ) ;
367369 defaults [ 0 ] . title . should . be . equal ( 'Name' ) ;
368370 defaults [ 1 ] . type . should . be . equal ( 'select' ) ;
0 commit comments