File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1616
1717import { deepEqual } from 'assert' ;
1818import { expect } from 'chai' ;
19- import { AccountProperty , PropertyModificationType , PropertyType } from '../../../src/model/model' ;
20-
19+ import { AccountProperty } from '../../../src/model/account/AccountProperty' ;
20+ import { Address } from '../../../src/model/account/Address' ;
21+ import { PropertyType } from '../../../src/model/account/PropertyType' ;
2122describe ( 'AccountProperty' , ( ) => {
2223
2324 it ( 'should createComplete an AccountProperty object' , ( ) => {
2425 const accountPropertyDTO = {
2526 propertyType : PropertyType . AllowAddress ,
26- values : [ { modificationType : PropertyModificationType . Add ,
27- value : 'SDUP5PLHDXKBX3UU5Q52LAY4WYEKGEWC6IB3VBFM' ,
28- } ] ,
27+ values : [ '906415867F121D037AF447E711B0F5E4D52EBBF066D96860EB' ] ,
2928 } ;
3029
3130 const accountProperty = new AccountProperty (
3231 accountPropertyDTO . propertyType ,
33- accountPropertyDTO . values ,
32+ accountPropertyDTO . values . map ( ( value ) => {
33+ return Address . createFromEncoded ( value ) ;
34+ } ) ,
3435 ) ;
3536
3637 expect ( accountProperty . propertyType ) . to . be . equal ( accountPropertyDTO . propertyType ) ;
You can’t perform that action at this time.
0 commit comments