small fix in filter tests

This commit is contained in:
Marek Kotewicz 2015-03-25 14:43:41 +01:00
parent 9f073d9091
commit b78dffaf8b
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ var getOptions = function (options) {
}
var asBlockNumber = function (n) {
if (n === null) {
if (n === null || typeof n === 'undefined') {
return null;
} else if (n === 'latest' || n === 'pending') {
return n;