@@ -1407,18 +1407,18 @@ describe('Hive - Sorted Set Store', function() {
14071407 await expect ( ( ) => store . getRangeByScore ( { maxBound : ( ) => undefined } ) ) . to . throw ( errorMsg )
14081408 } )
14091409
1410- it ( 'fails when Count is invalid' , async ( ) => {
1411- const errorMsg = 'Count must be a number.'
1412-
1413- await expect ( ( ) => store . getRangeByScore ( { count : null } ) ) . to . throw ( errorMsg )
1414- await expect ( ( ) => store . getRangeByScore ( { count : '' } ) ) . to . throw ( errorMsg )
1415- await expect ( ( ) => store . getRangeByScore ( { count : 'foo' } ) ) . to . throw ( errorMsg )
1416- await expect ( ( ) => store . getRangeByScore ( { count : NaN } ) ) . to . throw ( errorMsg )
1417- await expect ( ( ) => store . getRangeByScore ( { count : { } } ) ) . to . throw ( errorMsg )
1418- await expect ( ( ) => store . getRangeByScore ( { count : [ ] } ) ) . to . throw ( errorMsg )
1419- await expect ( ( ) => store . getRangeByScore ( { count : true } ) ) . to . throw ( errorMsg )
1420- await expect ( ( ) => store . getRangeByScore ( { count : false } ) ) . to . throw ( errorMsg )
1421- await expect ( ( ) => store . getRangeByScore ( { count : ( ) => undefined } ) ) . to . throw ( errorMsg )
1410+ it ( 'fails when PageSize is invalid' , async ( ) => {
1411+ const errorMsg = 'Page Size must be a number.'
1412+
1413+ await expect ( ( ) => store . getRangeByScore ( { pageSize : null } ) ) . to . throw ( errorMsg )
1414+ await expect ( ( ) => store . getRangeByScore ( { pageSize : '' } ) ) . to . throw ( errorMsg )
1415+ await expect ( ( ) => store . getRangeByScore ( { pageSize : 'foo' } ) ) . to . throw ( errorMsg )
1416+ await expect ( ( ) => store . getRangeByScore ( { pageSize : NaN } ) ) . to . throw ( errorMsg )
1417+ await expect ( ( ) => store . getRangeByScore ( { pageSize : { } } ) ) . to . throw ( errorMsg )
1418+ await expect ( ( ) => store . getRangeByScore ( { pageSize : [ ] } ) ) . to . throw ( errorMsg )
1419+ await expect ( ( ) => store . getRangeByScore ( { pageSize : true } ) ) . to . throw ( errorMsg )
1420+ await expect ( ( ) => store . getRangeByScore ( { pageSize : false } ) ) . to . throw ( errorMsg )
1421+ await expect ( ( ) => store . getRangeByScore ( { pageSize : ( ) => undefined } ) ) . to . throw ( errorMsg )
14221422 } )
14231423
14241424 it ( 'fails when Offset is invalid' , async ( ) => {
0 commit comments