1
0
Fork 0

test-member_builder-method freed from unnecessary dependencies for testing (#25)

closure/master
Mike Gerwitz 2011-09-02 23:15:15 -04:00
parent 1af7617a83
commit b0cec62c98
1 changed files with 4 additions and 10 deletions

View File

@ -27,18 +27,12 @@ var common = require( './common' ),
mb_common = require( __dirname + '/inc-member_builder-common' ), mb_common = require( __dirname + '/inc-member_builder-common' ),
util = common.require( 'util' ), util = common.require( 'util' ),
// XXX: get rid of this disgusting mess; we're mid-refactor and all these // stub factories used for testing
// dependencies should not be necessary for testing stubFactory= common.require( '/MethodWrapperFactory' )(
MethodWrapperFactory = common.require( '/MethodWrapperFactory' ), function( func ) { return func; }
wrappers = common.require( '/MethodWrappers' ).standard,
builder = common.require( '/MemberBuilder' )(
MethodWrapperFactory( wrappers.wrapNew ),
MethodWrapperFactory( wrappers.wrapOverride )
), ),
warn = common.require( 'warn' ), builder = common.require( '/MemberBuilder' )( stubFactory, stubFactory )
Warning = warn.Warning
; ;
mb_common.funcVal = 'foobar'; mb_common.funcVal = 'foobar';