@@ -319,10 +319,10 @@ describe('Content Script - Testing Dapp Connection API', function () {
319
319
320
320
assert . equal ( response . errors , null ) ;
321
321
assert . equal ( response . wallets . length , 1 ) ;
322
- assert . equal ( response . approvals [ 'testnet' ] . contractName , connection . contractName ) ;
323
- assert . equal ( response . approvals [ 'testnet' ] . version , connection . version ) ;
324
- assert . equal ( response . approvals [ 'testnet' ] . trustedApp , true ) ;
325
- assert . equal ( response . approvals [ 'testnet' ] . charms . length , 1 ) ;
322
+ assert . equal ( response . approvals [ 'V1| testnet' ] . contractName , connection . contractName ) ;
323
+ assert . equal ( response . approvals [ 'V1| testnet' ] . version , connection . version ) ;
324
+ assert . equal ( response . approvals [ 'V1| testnet' ] . trustedApp , true ) ;
325
+ assert . equal ( response . approvals [ 'V1| testnet' ] . charms . length , 1 ) ;
326
326
} ) ;
327
327
it ( 'POPUP: Can Update connection info if version is greater' , async function ( ) {
328
328
let connection = helpers . getInstance ( dappsInfo . updatedConnectionInfo_basic )
@@ -334,10 +334,10 @@ describe('Content Script - Testing Dapp Connection API', function () {
334
334
335
335
assert . equal ( response . errors , null ) ;
336
336
assert . equal ( response . wallets . length , 1 ) ;
337
- assert . equal ( response . approvals [ 'testnet' ] . contractName , connection . contractName ) ;
338
- assert . equal ( response . approvals [ 'testnet' ] . version , dappsInfo . updatedConnectionInfo_basic . version ) ;
339
- assert . equal ( response . approvals [ 'testnet' ] . trustedApp , true ) ;
340
- assert . equal ( response . approvals [ 'testnet' ] . charms . length , 2 ) ;
337
+ assert . equal ( response . approvals [ 'V1| testnet' ] . contractName , connection . contractName ) ;
338
+ assert . equal ( response . approvals [ 'V1| testnet' ] . version , dappsInfo . updatedConnectionInfo_basic . version ) ;
339
+ assert . equal ( response . approvals [ 'V1| testnet' ] . trustedApp , true ) ;
340
+ assert . equal ( response . approvals [ 'V1| testnet' ] . charms . length , 2 ) ;
341
341
} ) ;
342
342
it ( 'POPUP: Can Update smart contract after reapproval if version is greater' , async function ( ) {
343
343
let connection = helpers . getInstance ( dappsInfo . updatedConnectionInfo_smartcontract )
@@ -350,10 +350,10 @@ describe('Content Script - Testing Dapp Connection API', function () {
350
350
351
351
assert . equal ( response . errors , null ) ;
352
352
assert . equal ( response . wallets . length , 1 ) ;
353
- assert . equal ( response . approvals [ 'testnet' ] . contractName , connection . contractName ) ;
354
- assert . equal ( response . approvals [ 'testnet' ] . version , dappsInfo . updatedConnectionInfo_smartcontract . version ) ;
355
- assert . equal ( response . approvals [ 'testnet' ] . trustedApp , true ) ;
356
- assert . equal ( typeof response . approvals [ 'testnet' ] . charms === 'undefined' , true ) ;
353
+ assert . equal ( response . approvals [ 'V1| testnet' ] . contractName , connection . contractName ) ;
354
+ assert . equal ( response . approvals [ 'V1| testnet' ] . version , dappsInfo . updatedConnectionInfo_smartcontract . version ) ;
355
+ assert . equal ( response . approvals [ 'V1| testnet' ] . trustedApp , true ) ;
356
+ assert . equal ( typeof response . approvals [ 'V1| testnet' ] . charms === 'undefined' , true ) ;
357
357
} ) ;
358
358
it ( 'Does nothing if a smart contract update is sent with an equal or lower version' , async function ( ) {
359
359
let connection = helpers . getInstance ( dappsInfo . updatedConnectionInfo_basic )
@@ -371,10 +371,10 @@ describe('Content Script - Testing Dapp Connection API', function () {
371
371
372
372
assert . equal ( response . errors , null ) ;
373
373
assert . equal ( response . wallets . length , 1 ) ;
374
- assert . equal ( response . approvals [ 'testnet' ] . contractName , dappsInfo . updatedConnectionInfo_smartcontract . contractName ) ;
375
- assert . equal ( response . approvals [ 'testnet' ] . version , dappsInfo . updatedConnectionInfo_smartcontract . version ) ;
376
- assert . equal ( response . approvals [ 'testnet' ] . trustedApp , true ) ;
377
- assert . equal ( typeof response . approvals [ 'testnet' ] . charms === 'undefined' , true ) ;
374
+ assert . equal ( response . approvals [ 'V1| testnet' ] . contractName , dappsInfo . updatedConnectionInfo_smartcontract . contractName ) ;
375
+ assert . equal ( response . approvals [ 'V1| testnet' ] . version , dappsInfo . updatedConnectionInfo_smartcontract . version ) ;
376
+ assert . equal ( response . approvals [ 'V1| testnet' ] . trustedApp , true ) ;
377
+ assert . equal ( typeof response . approvals [ 'V1| testnet' ] . charms === 'undefined' , true ) ;
378
378
} ) ;
379
379
} )
380
380
} )
0 commit comments