Finished correcting assertion tests with new implementation
parent
46dbf56658
commit
69391f9b48
12
lib/util.js
12
lib/util.js
|
@ -185,12 +185,6 @@ exports.propParse = function( data, options )
|
|||
name = parse_data.name || prop;
|
||||
keywords = parse_data.keywords || {};
|
||||
|
||||
// if an 'each' callback was provided, pass the data before parsing it
|
||||
if ( callback_each )
|
||||
{
|
||||
callback_each.call( callback_each, name, value );
|
||||
}
|
||||
|
||||
if ( keywords['abstract'] )
|
||||
{
|
||||
if ( value instanceof Array )
|
||||
|
@ -203,6 +197,12 @@ exports.propParse = function( data, options )
|
|||
}
|
||||
}
|
||||
|
||||
// if an 'each' callback was provided, pass the data before parsing it
|
||||
if ( callback_each )
|
||||
{
|
||||
callback_each.call( callback_each, name, value );
|
||||
}
|
||||
|
||||
// getter/setter
|
||||
if ( getter || setter )
|
||||
{
|
||||
|
|
|
@ -177,7 +177,7 @@ assert.throws(
|
|||
AbstractFoo.extend(
|
||||
{
|
||||
// incorrect number of arguments
|
||||
method: abstractMethod(),
|
||||
'abstract method': [],
|
||||
});
|
||||
},
|
||||
TypeError,
|
||||
|
@ -190,7 +190,7 @@ assert.doesNotThrow(
|
|||
AbstractFoo.extend(
|
||||
{
|
||||
// incorrect number of arguments
|
||||
method: abstractMethod( 'one', 'two', 'three', 'four' ),
|
||||
'abstract method': [ 'one', 'two', 'three', 'four' ],
|
||||
});
|
||||
},
|
||||
Error,
|
||||
|
|
Loading…
Reference in New Issue