@@ -28,17 +28,19 @@ describe("SemaphoreEthers", () => {
28
28
it ( "Should instantiate a SemaphoreEthers object with different networks" , ( ) => {
29
29
semaphore = new SemaphoreEthers ( )
30
30
const semaphore1 = new SemaphoreEthers ( "arbitrum" )
31
- const semaphore2 = new SemaphoreEthers ( "homestead" , {
31
+ const semaphore2 = new SemaphoreEthers ( "matic" )
32
+ const semaphore3 = new SemaphoreEthers ( "homestead" , {
32
33
address : "0x0000000000000000000000000000000000000000" ,
33
34
startBlock : 0
34
35
} )
35
36
36
37
expect ( semaphore . network ) . toBe ( "goerli" )
37
38
expect ( semaphore . contract ) . toBeInstanceOf ( Object )
38
39
expect ( semaphore1 . network ) . toBe ( "arbitrum" )
39
- expect ( semaphore2 . network ) . toBe ( "homestead" )
40
- expect ( semaphore2 . options . startBlock ) . toBe ( 0 )
41
- expect ( semaphore2 . options . address ) . toContain ( "0x000000" )
40
+ expect ( semaphore2 . network ) . toBe ( "maticmum" )
41
+ expect ( semaphore3 . network ) . toBe ( "homestead" )
42
+ expect ( semaphore3 . options . startBlock ) . toBe ( 0 )
43
+ expect ( semaphore3 . options . address ) . toContain ( "0x000000" )
42
44
} )
43
45
44
46
it ( "Should instantiate a SemaphoreEthers object with different providers" , ( ) => {
@@ -249,6 +251,14 @@ describe("SemaphoreEthers", () => {
249
251
250
252
describe ( "# getGroupVerifiedProofs" , ( ) => {
251
253
it ( "Should return a list of group verified proofs" , async ( ) => {
254
+ getEventsMocked . mockReturnValueOnce (
255
+ Promise . resolve ( [
256
+ {
257
+ merkleTreeDepth : "20" ,
258
+ zeroValue : "0"
259
+ }
260
+ ] )
261
+ )
252
262
getEventsMocked . mockReturnValueOnce (
253
263
Promise . resolve ( [
254
264
{
0 commit comments