|
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | */ |
| 16 | +import {deepEqual} from 'assert'; |
16 | 17 | import {expect} from 'chai'; |
17 | 18 | import {NamespaceHttp} from '../../src/infrastructure/NamespaceHttp'; |
18 | 19 | import {PublicAccount} from '../../src/model/account/PublicAccount'; |
19 | 20 | import {NetworkType} from '../../src/model/blockchain/NetworkType'; |
| 21 | +import {NetworkCurrencyMosaic} from '../../src/model/mosaic/NetworkCurrencyMosaic'; |
20 | 22 | import {NamespaceId} from '../../src/model/namespace/NamespaceId'; |
21 | 23 | import {APIUrl} from '../conf/conf.spec'; |
22 | 24 |
|
23 | 25 | describe('NamespaceHttp', () => { |
24 | | - const namespaceId = new NamespaceId([929036875, 2226345261]); |
| 26 | + const namespaceId = NetworkCurrencyMosaic.NAMESPACE_ID; |
25 | 27 | const publicAccount = PublicAccount.createFromPublicKey('B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF', |
26 | 28 | NetworkType.MIJIN_TEST); |
27 | 29 | const namespaceHttp = new NamespaceHttp(APIUrl); |
@@ -71,10 +73,11 @@ describe('NamespaceHttp', () => { |
71 | 73 | }); |
72 | 74 |
|
73 | 75 | describe('getLinkedMosaicId', () => { |
74 | | - it('should return mosaicId given namespaceId', (done) => { |
| 76 | + it('should return mosaicId given currency namespaceId', (done) => { |
75 | 77 | namespaceHttp.getLinkedMosaicId(namespaceId) |
76 | 78 | .subscribe((mosaicId) => { |
77 | | - expect(mosaicId).to.be.null; |
| 79 | + expect(mosaicId).to.not.be.null; |
| 80 | + deepEqual(mosaicId, NetworkCurrencyMosaic.MOSAIC_ID); |
78 | 81 | done(); |
79 | 82 | }); |
80 | 83 | }); |
|
0 commit comments