File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments