Skip to content

Commit c34cdcd

Browse files
committed
Fixed unit test
1 parent d1c4675 commit c34cdcd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/model/receipt/Statement.spec.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ describe('Statement', () => {
110110
it('should get reolved address from receipt', () => {
111111
const unresolvedAddress = UnresolvedMapping.toUnresolvedAddress('9156258DE356F030A500000000000000000000000000000000');
112112
const statement = CreateStatementFromDTO(statementDTO, NetworkType.MIJIN_TEST);
113-
const resolved = statement
114-
.getResolvedFromReceipt(ResolutionType.Address, unresolvedAddress as NamespaceId, 0, '1473');
113+
const resolved = statement.resolveAddress(unresolvedAddress as NamespaceId, '1473', 0);
115114

116115
expect(resolved instanceof Address).to.be.true;
117116
expect((resolved as Address).equals(account.address)).to.be.true;
@@ -141,8 +140,7 @@ describe('Statement', () => {
141140
};
142141
const unresolvedAddress = UnresolvedMapping.toUnresolvedAddress('9156258DE356F030A500000000000000000000000000000000');
143142
const statement = CreateStatementFromDTO(statementWithoutHarvesting, NetworkType.MIJIN_TEST);
144-
const resolved = statement
145-
.getResolvedFromReceipt(ResolutionType.Address, unresolvedAddress as NamespaceId, 0, '1473');
143+
const resolved = statement.resolveAddress(unresolvedAddress as NamespaceId, '1473', 0);
146144

147145
expect(resolved instanceof Address).to.be.true;
148146
expect((resolved as Address).equals(account.address)).to.be.true;
@@ -151,8 +149,7 @@ describe('Statement', () => {
151149
it('should get reolved mosaic from receipt', () => {
152150
const unresolvedMosaic = UnresolvedMapping.toUnresolvedMosaic('E81F622A5B11A340');
153151
const statement = CreateStatementFromDTO(statementDTO, NetworkType.MIJIN_TEST);
154-
const resolved = statement
155-
.getResolvedFromReceipt(ResolutionType.Mosaic, unresolvedMosaic as NamespaceId, 0, '1473');
152+
const resolved = statement.resolveMosaicId(unresolvedMosaic as NamespaceId, '1473', 0);
156153

157154
expect(resolved instanceof MosaicId).to.be.true;
158155
expect((resolved as MosaicId).equals(new MosaicId('756482FB80FD406C'))).to.be.true;
@@ -197,8 +194,7 @@ describe('Statement', () => {
197194
};
198195
const unresolvedMosaic = UnresolvedMapping.toUnresolvedMosaic('E81F622A5B11A340');
199196
const statement = CreateStatementFromDTO(statementWithoutHarvesting, NetworkType.MIJIN_TEST);
200-
const resolved = statement
201-
.getResolvedFromReceipt(ResolutionType.Mosaic, unresolvedMosaic as NamespaceId, 0, '1473');
197+
const resolved = statement.resolveMosaicId(unresolvedMosaic as NamespaceId, '1473', 0);
202198

203199
expect(resolved instanceof MosaicId).to.be.true;
204200
expect((resolved as MosaicId).equals(new MosaicId('756482FB80FD406C'))).to.be.true;

0 commit comments

Comments
 (0)