diff --git a/test/inc-testcase.js b/test/inc-testcase.js index d88e659..9065abe 100644 --- a/test/inc-testcase.js +++ b/test/inc-testcase.js @@ -132,7 +132,7 @@ module.exports = function( test_case ) args.push( [ context[ prop ][ i ] ] ); } } - else if ( method !== undefined ) + else if ( method ) { throw Error( "Unknown test method: " + method ); }