Skip to content

Commit 250c99d

Browse files
committed
Fixed account property unit test issue
1 parent dfab7bd commit 250c99d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/model/account/AccountProperty.spec.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@
1616

1717
import {deepEqual} from 'assert';
1818
import {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';
2122
describe('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);

0 commit comments

Comments
 (0)