1717import { expect } from 'chai' ;
1818import { AccountHttp } from '../../src/infrastructure/AccountHttp' ;
1919import { MosaicHttp } from '../../src/infrastructure/MosaicHttp' ;
20- import { NamespaceHttp } from '../../src/infrastructure/NamespaceHttp' ;
2120import { Address } from '../../src/model/account/Address' ;
2221import { Mosaic } from '../../src/model/mosaic/Mosaic' ;
2322import { MosaicId } from '../../src/model/mosaic/MosaicId' ;
@@ -32,7 +31,7 @@ describe('MosaicService', () => {
3231 it ( 'mosaicsView' , ( ) => {
3332 const mosaicId = new MosaicId ( [ 3294802500 , 2243684972 ] ) ;
3433 const mosaicService = new MosaicService (
35- new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) , new NamespaceHttp ( conf . NIS2_URL ) ) ;
34+ new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) ) ;
3635 return mosaicService . mosaicsView ( [ mosaicId ] ) . subscribe ( ( mosaicsView : MosaicView [ ] ) => {
3736 const mosaicView = mosaicsView [ 0 ] ;
3837 expect ( mosaicView . mosaicInfo ) . to . be . an . instanceof ( MosaicInfo ) ;
@@ -42,15 +41,15 @@ describe('MosaicService', () => {
4241 it ( 'mosaicsView of no existing mosaicId' , ( ) => {
4342 const mosaicId = new MosaicId ( [ 1234 , 1234 ] ) ;
4443 const mosaicService = new MosaicService (
45- new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) , new NamespaceHttp ( conf . NIS2_URL ) ) ;
44+ new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) ) ;
4645 return mosaicService . mosaicsView ( [ mosaicId ] ) . subscribe ( ( mosaicsView : MosaicView [ ] ) => {
4746 expect ( mosaicsView . length ) . to . be . equal ( 0 ) ;
4847 } ) ;
4948 } ) ;
5049
5150 it ( 'mosaicsAmountView' , ( ) => {
5251 const mosaicService = new MosaicService (
53- new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) , new NamespaceHttp ( conf . NIS2_URL ) ) ;
52+ new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) ) ;
5453 return mosaicService . mosaicsAmountViewFromAddress ( Address . createFromRawAddress ( 'SARNASAS2BIAB6LMFA3FPMGBPGIJGK6IJETM3ZSP' ) )
5554 . subscribe ( ( mosaicsAmountView : MosaicAmountView [ ] ) => {
5655 const mosaicAmountView = mosaicsAmountView [ 0 ] ;
@@ -60,7 +59,7 @@ describe('MosaicService', () => {
6059
6160 it ( 'mosaicsAmountView of no existing account' , ( ) => {
6261 const mosaicService = new MosaicService (
63- new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) , new NamespaceHttp ( conf . NIS2_URL ) ) ;
62+ new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) ) ;
6463 return mosaicService . mosaicsAmountViewFromAddress ( Address . createFromRawAddress ( 'SCKBZAMIQ6F46QMZUANE6E33KA63KA7KEQ5X6WJW' ) )
6564 . subscribe ( ( mosaicsAmountView : MosaicAmountView [ ] ) => {
6665 expect ( mosaicsAmountView . length ) . to . be . equal ( 0 ) ;
@@ -70,7 +69,7 @@ describe('MosaicService', () => {
7069 it ( 'mosaicsAmountView' , ( ) => {
7170 const mosaic = new Mosaic ( new MosaicId ( [ 3646934825 , 3576016193 ] ) , UInt64 . fromUint ( 1000 ) ) ;
7271 const mosaicService = new MosaicService (
73- new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) , new NamespaceHttp ( conf . NIS2_URL ) ) ;
72+ new AccountHttp ( conf . NIS2_URL ) , new MosaicHttp ( conf . NIS2_URL ) ) ;
7473 return mosaicService . mosaicsAmountView ( [ mosaic ] ) . subscribe ( ( mosaicsAmountView : MosaicAmountView [ ] ) => {
7574 const mosaicAmountView = mosaicsAmountView [ 0 ] ;
7675 expect ( mosaicAmountView . mosaicInfo ) . to . be . an . instanceof ( MosaicInfo ) ;
0 commit comments