Skip to content
Browse files

Silence warning

  • Loading branch information...
1 parent 063d2e2 commit 96f8c3065281b3e722ff2d965fb03786ff8c76e2 @ashb committed Mar 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 qmock.js
View
2 qmock.js
@@ -783,7 +783,7 @@ function initQMock ( assert, opt ) {
// Assert Number of Arguments if expectation explicitly set...
// At least n Arg length checking - overloading allowed - Global check
- if ( expectedArgs[ j ][ "required" ] > actualArgs[ i ].length ) {
+ if ( ( expectedArgs[ j ].required || 0 ) > actualArgs[ i ].length ) {
throwMockException( expectedArgs.length, actualArgs.length, "IncorrectNumberOfArgumentsException", name );
continue assertPresentations;
}

0 comments on commit 96f8c30

Please sign in to comment.
Something went wrong with that request. Please try again.