@@ -112,29 +112,31 @@ describe('DepositPreauth', function () {
112112
113113 it ( 'throws when AuthorizeCredentials is not an array' , function ( ) {
114114 const errorMessage =
115- 'DepositPreauth: invalid field CredentialIDs , expected a valid array'
115+ 'DepositPreauth: invalid field AuthorizeCredentials , expected a valid array'
116116 depositPreauth . AuthorizeCredentials = validCredential
117117
118118 assertInvalid ( depositPreauth , errorMessage )
119119 } )
120120
121121 it ( 'throws when UnauthorizeCredentials is not an array' , function ( ) {
122122 const errorMessage =
123- 'DepositPreauth: invalid field CredentialIDs , expected a valid array'
123+ 'DepositPreauth: invalid field UnauthorizeCredentials , expected a valid array'
124124 depositPreauth . UnauthorizeCredentials = validCredential
125125
126126 assertInvalid ( depositPreauth , errorMessage )
127127 } )
128128
129129 it ( 'throws when AuthorizeCredentials is empty array' , function ( ) {
130- const errorMessage = 'DepositPreauth: Credentials cannot be an empty array'
130+ const errorMessage =
131+ 'DepositPreauth: AuthorizeCredentials cannot be an empty array'
131132 depositPreauth . AuthorizeCredentials = [ ]
132133
133134 assertInvalid ( depositPreauth , errorMessage )
134135 } )
135136
136137 it ( 'throws when UnauthorizeCredentials is empty array' , function ( ) {
137- const errorMessage = 'DepositPreauth: Credentials cannot be an empty array'
138+ const errorMessage =
139+ 'DepositPreauth: UnauthorizeCredentials cannot be an empty array'
138140 depositPreauth . UnauthorizeCredentials = [ ]
139141
140142 assertInvalid ( depositPreauth , errorMessage )
@@ -143,7 +145,7 @@ describe('DepositPreauth', function () {
143145 it ( 'throws when AuthorizeCredentials is too long' , function ( ) {
144146 const sampleCredentials : AuthorizeCredential [ ] = [ ]
145147 const errorMessage =
146- 'DepositPreauth: Credentials length cannot exceed 8 elements'
148+ 'DepositPreauth: AuthorizeCredentials length cannot exceed 8 elements'
147149 for ( let index = 0 ; index < 9 ; index ++ ) {
148150 sampleCredentials . push ( {
149151 Credential : {
@@ -159,7 +161,7 @@ describe('DepositPreauth', function () {
159161 it ( 'throws when UnauthorizeCredentials is too long' , function ( ) {
160162 const sampleCredentials : AuthorizeCredential [ ] = [ ]
161163 const errorMessage =
162- 'DepositPreauth: Credentials length cannot exceed 8 elements'
164+ 'DepositPreauth: UnauthorizeCredentials length cannot exceed 8 elements'
163165 for ( let index = 0 ; index < 9 ; index ++ ) {
164166 sampleCredentials . push ( {
165167 Credential : {
@@ -177,7 +179,7 @@ describe('DepositPreauth', function () {
177179 { Credential : 'Invalid Shape' } ,
178180 { Credential : 'Another Invalid Shape' } ,
179181 ]
180- const errorMessage = 'DepositPreauth: Invalid Credentials format'
182+ const errorMessage = 'DepositPreauth: Invalid AuthorizeCredentials format'
181183
182184 depositPreauth . AuthorizeCredentials = invalidCredentials
183185 assertInvalid ( depositPreauth , errorMessage )
@@ -188,7 +190,7 @@ describe('DepositPreauth', function () {
188190 { Credential : 'Invalid Shape' } ,
189191 { Credential : 'Another Invalid Shape' } ,
190192 ]
191- const errorMessage = 'DepositPreauth: Invalid Credentials format'
193+ const errorMessage = 'DepositPreauth: Invalid UnauthorizeCredentials format'
192194
193195 depositPreauth . UnauthorizeCredentials = invalidCredentials
194196 assertInvalid ( depositPreauth , errorMessage )
@@ -197,7 +199,7 @@ describe('DepositPreauth', function () {
197199 it ( 'throws when AuthorizeCredentials has duplicates' , function ( ) {
198200 const invalidCredentials = [ validCredential , validCredential ]
199201 const errorMessage =
200- 'DepositPreauth: Credentials cannot contain duplicate elements'
202+ 'DepositPreauth: AuthorizeCredentials cannot contain duplicate elements'
201203
202204 depositPreauth . AuthorizeCredentials = invalidCredentials
203205 assertInvalid ( depositPreauth , errorMessage )
@@ -206,7 +208,7 @@ describe('DepositPreauth', function () {
206208 it ( 'throws when UnauthorizeCredentials has duplicates' , function ( ) {
207209 const invalidCredentials = [ validCredential , validCredential ]
208210 const errorMessage =
209- 'DepositPreauth: Credentials cannot contain duplicate elements'
211+ 'DepositPreauth: UnauthorizeCredentials cannot contain duplicate elements'
210212
211213 depositPreauth . UnauthorizeCredentials = invalidCredentials
212214 assertInvalid ( depositPreauth , errorMessage )
0 commit comments