Skip to content

Commit 43fc724

Browse files
committed
Added e2d tests for mosaic owner endpoints
1 parent b5c2555 commit 43fc724

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

e2e/infrastructure/MosaicHttp.spec.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,26 @@ describe('MosaicHttp', () => {
191191
});
192192
});
193193

194+
describe('getMosaicsFromAccount', () => {
195+
it('should call getMosaicsFromAccount successfully', (done) => {
196+
mosaicHttp.getMosaicsFromAccount(account.address).subscribe((mosaics) => {
197+
expect(mosaics.length).to.be.greaterThan(0);
198+
expect(mosaics.find((m) => m.id.toHex() === mosaicId.toHex()) !== undefined).to.be.true;
199+
done();
200+
});
201+
});
202+
});
203+
204+
describe('getMosaicsFromAccounts', () => {
205+
it('should call getMosaicsFromAccounts successfully', (done) => {
206+
mosaicHttp.getMosaicsFromAccounts([account.address]).subscribe((mosaics) => {
207+
expect(mosaics.length).to.be.greaterThan(0);
208+
expect(mosaics.find((m) => m.id.toHex() === mosaicId.toHex()) !== undefined).to.be.true;
209+
done();
210+
});
211+
});
212+
});
213+
194214
/**
195215
* =========================
196216
* House Keeping

0 commit comments

Comments
 (0)