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' ),
util = common.require( 'util' ),
// XXX: get rid of this disgusting mess; we're mid-refactor and all these
// dependencies should not be necessary for testing
MethodWrapperFactory = common.require( '/MethodWrapperFactory' ),
wrappers = common.require( '/MethodWrappers' ).standard,
builder = common.require( '/MemberBuilder' )(
MethodWrapperFactory( wrappers.wrapNew ),
MethodWrapperFactory( wrappers.wrapOverride )
// stub factories used for testing
stubFactory= common.require( '/MethodWrapperFactory' )(
function( func ) { return func; }
),
warn = common.require( 'warn' ),
Warning = warn.Warning
builder = common.require( '/MemberBuilder' )( stubFactory, stubFactory )
;
mb_common.funcVal = 'foobar';