test-member_builder-method freed from unnecessary dependencies for testing (#25)
parent
1af7617a83
commit
b0cec62c98
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue