@@ -18,8 +18,6 @@ describe("torus utils aqua", function () {
1818
1919 beforeEach ( "one time execution before all tests" , async function ( ) {
2020 torus = new TorusUtils ( {
21- // signerHost: "https://signer-polygon.tor.us/api/sign",
22- allowHost : "https://signer-polygon.tor.us/api/allow" ,
2321 network : "aqua" ,
2422 clientId : "YOUR_CLIENT_ID" ,
2523 } ) ;
@@ -48,7 +46,7 @@ describe("torus utils aqua", function () {
4846 upgraded : false ,
4947 typeOfUser : "v1" ,
5048 } ,
51- nodesData : { nodeIndexes : [ ] } ,
49+ nodesData : result . nodesData ,
5250 } ) ;
5351 } ) ;
5452
@@ -57,7 +55,7 @@ describe("torus utils aqua", function () {
5755 const verifierDetails = { verifier, verifierId : TORUS_TEST_EMAIL } ;
5856 const { torusNodeEndpoints, torusNodePub } = await TORUS_NODE_MANAGER . getNodeDetails ( verifierDetails ) ;
5957 const result1 = ( await torus . getUserTypeAndAddress ( torusNodeEndpoints , torusNodePub , verifierDetails ) ) as TorusPublicKey ;
60- expect ( result1 . finalKeyData . evmAddress ) . to . equal ( "0xDfA967285AC699A70DA340F60d00DB19A272639d " ) ;
58+ expect ( result1 . finalKeyData . evmAddress ) . to . equal ( "0x79F06350eF34Aeed4BE68e26954D405D573f1438 " ) ;
6159 expect ( result1 . metadata . typeOfUser ) . to . equal ( "v1" ) ;
6260 expect ( result1 ) . eql ( {
6361 oAuthKeyData : {
@@ -76,7 +74,7 @@ describe("torus utils aqua", function () {
7674 upgraded : false ,
7775 typeOfUser : "v1" ,
7876 } ,
79- nodesData : { nodeIndexes : [ ] } ,
77+ nodesData : result1 . nodesData ,
8078 } ) ;
8179
8280 const v2Verifier = "tkey-google-aqua" ;
@@ -105,7 +103,7 @@ describe("torus utils aqua", function () {
105103 upgraded : false ,
106104 typeOfUser : "v1" ,
107105 } ,
108- nodesData : { nodeIndexes : [ ] } ,
106+ nodesData : result2 . nodesData ,
109107 } ) ;
110108
111109 // 2/n user
@@ -133,7 +131,7 @@ describe("torus utils aqua", function () {
133131 upgraded : false ,
134132 typeOfUser : "v1" ,
135133 } ,
136- nodesData : { nodeIndexes : [ ] } ,
134+ nodesData : result3 . nodesData ,
137135 } ) ;
138136 } ) ;
139137
@@ -170,9 +168,9 @@ describe("torus utils aqua", function () {
170168 Y : "63795690a33e575ee12d832935d563c2b5f2e1b1ffac63c32a4674152f68cb3f" ,
171169 privKey : "f726ce4ac79ae4475d72633c94769a8817aff35eebe2d4790aed7b5d8a84aa1d" ,
172170 } ,
173- sessionData : { sessionTokenData : [ ] , sessionAuthKey : "" } ,
171+ sessionData : result . sessionData ,
174172 metadata : { pubNonce : undefined , nonce : new BN ( 0 ) , typeOfUser : "v1" , upgraded : null } ,
175- nodesData : { nodeIndexes : [ ] } ,
173+ nodesData : result . nodesData ,
176174 } ) ;
177175 } ) ;
178176
@@ -208,9 +206,9 @@ describe("torus utils aqua", function () {
208206 Y : "f963f2d08ed4dd0da9b8a8d74c6fdaeef7bdcde31f84fcce19fa2173d40b2c10" ,
209207 privKey : "488d39ac548e15cfb0eaf161d86496e1645b09437df21311e24a56c4efd76355" ,
210208 } ,
211- sessionData : { sessionTokenData : [ ] , sessionAuthKey : "" } ,
209+ sessionData : result . sessionData ,
212210 metadata : { pubNonce : undefined , nonce : new BN ( 0 ) , typeOfUser : "v1" , upgraded : null } ,
213- nodesData : { nodeIndexes : [ ] } ,
211+ nodesData : result . nodesData ,
214212 } ) ;
215213 } ) ;
216214} ) ;
0 commit comments