77const generateRandomIdentifier = require ( '@dashevo/wasm-dpp/lib/test/utils/generateRandomIdentifierAsync' ) ;
88
99const { expect } = require ( 'chai' ) ;
10- const walletContractDocumentsSchema = require ( '../../schema/v1/wallet-contract-documents.json' ) ;
10+ const walletContractDocumentsSchema = require ( '../../schema/v1/wallet-utils- contract-documents.json' ) ;
1111
1212const expectJsonSchemaError = ( validationResult , errorCount = 1 ) => {
1313 const errors = validationResult . getErrors ( ) ;
@@ -85,11 +85,11 @@ describe('Wallet Contract', () => {
8585 const error = expectJsonSchemaError ( validationResult ) ;
8686
8787 expect ( error . keyword )
88- . to
89- . equal ( 'required' ) ;
88+ . to
89+ . equal ( 'required' ) ;
9090 expect ( error . params . missingProperty )
91- . to
92- . equal ( 'encryptionKeyIndex' ) ;
91+ . to
92+ . equal ( 'encryptionKeyIndex' ) ;
9393 } ) ;
9494 } ) ;
9595
@@ -102,11 +102,11 @@ describe('Wallet Contract', () => {
102102 const error = expectJsonSchemaError ( validationResult ) ;
103103
104104 expect ( error . keyword )
105- . to
106- . equal ( 'required' ) ;
105+ . to
106+ . equal ( 'required' ) ;
107107 expect ( error . params . missingProperty )
108- . to
109- . equal ( 'encryptedMetadata' ) ;
108+ . to
109+ . equal ( 'encryptedMetadata' ) ;
110110 } ) ;
111111
112112 it ( 'should be not shorter than 32 bytes' , async ( ) => {
@@ -117,11 +117,11 @@ describe('Wallet Contract', () => {
117117 const error = expectJsonSchemaError ( validationResult ) ;
118118
119119 expect ( error . keyword )
120- . to
121- . equal ( 'minBytes ' ) ;
120+ . to
121+ . equal ( 'minItems ' ) ;
122122 expect ( error . instancePath )
123- . to
124- . equal ( '/encryptedMetadata' ) ;
123+ . to
124+ . equal ( '/encryptedMetadata' ) ;
125125 } ) ;
126126
127127 it ( 'should be not longer than 4096 bytes' , async ( ) => {
@@ -132,11 +132,11 @@ describe('Wallet Contract', () => {
132132 const error = expectJsonSchemaError ( validationResult ) ;
133133
134134 expect ( error . keyword )
135- . to
136- . equal ( 'maxItems' ) ;
135+ . to
136+ . equal ( 'maxItems' ) ;
137137 expect ( error . instancePath )
138- . to
139- . equal ( '/encryptedMetadata' ) ;
138+ . to
139+ . equal ( '/encryptedMetadata' ) ;
140140 } ) ;
141141 } ) ;
142142
0 commit comments