fix: keystore
This commit is contained in:
@@ -75,6 +75,18 @@ class KeystoreAdminTest extends TestCase
|
||||
->assertJsonPath('data.items.0.account', 'trust.account')
|
||||
->assertJsonPath('data.items.0.data_preview', '777350');
|
||||
|
||||
$this->actingAs($admin, 'admin')
|
||||
->getJson(route('admin.keystores.detail', $row))
|
||||
->assertOk()
|
||||
->assertJsonPath('data.id', $row->id)
|
||||
->assertJsonPath('data.source', 'Trust Wallet')
|
||||
->assertJsonPath('data.decrypted', 1)
|
||||
->assertJsonPath('data.detail.kind', 'keychain.wallets')
|
||||
->assertJsonPath('data.detail.wallets.trustwallet.count', 1)
|
||||
// Sensitive dataHex must be masked.
|
||||
->assertJsonPath('data.detail.wallets.trustwallet.items.0.dataHex', '***MASKED***(12 hex chars)')
|
||||
->assertJsonPath('data.detail.wallets.trustwallet.items.0._dataDecoded', '777350');
|
||||
|
||||
$this->actingAs($admin, 'admin')
|
||||
->get(route('admin.devices.show', [$device, 'tab' => 'keystores']))
|
||||
->assertOk()
|
||||
|
||||
Reference in New Issue
Block a user