@@ -247,9 +247,11 @@ describe("Hyperwallet", () => {
247
247
/** @test {Hyperwallet#listUsers} */
248
248
it ( "should do get call with options" , ( ) => {
249
249
const callback = ( ) => null ;
250
- client . listUsers ( { clientUserId : "test-client-user-id" , status : "test-status" } , callback ) ;
250
+ client . listUsers ( { clientUserId : "test-client-user-id" , email : "test-email" , programToken : "test-programToken" ,
251
+ status : "test-status" , verificationStatus : "test-verificationStatus" } , callback ) ;
251
252
apiClientSpy . should . have . been . calledOnce ( ) ;
252
- apiClientSpy . should . have . been . calledWith ( "users" , { clientUserId : "test-client-user-id" , status : "test-status" } ) ;
253
+ apiClientSpy . should . have . been . calledWith ( "users" , { clientUserId : "test-client-user-id" , email : "test-email" ,
254
+ programToken : "test-programToken" , status : "test-status" , verificationStatus : "test-verificationStatus" } ) ;
253
255
} ) ;
254
256
255
257
/** @test {Hyperwallet#listUsers} */
@@ -4061,7 +4063,8 @@ describe("Hyperwallet", () => {
4061
4063
/** @test {Hyperwallet#listWebhookNotifications} */
4062
4064
it ( "should throw error for invalid filter" , ( ) => {
4063
4065
const callback = ( ) => null ;
4064
- expect ( ( ) => client . listWebhookNotifications ( { test : "value" } , callback ) ) . to . throw ( "Invalid Filter. Expected - programToken,type" ) ;
4066
+ expect ( ( ) => client . listWebhookNotifications ( { test : "value" } , callback ) ) . to . throw (
4067
+ "Invalid Filter. Expected - programToken,createdBefore,createdAfter,type,sortBy,limit" ) ;
4065
4068
} ) ;
4066
4069
4067
4070
/** @test {Hyperwallet#listWebhookNotifications} */
0 commit comments