|
15 | 15 | */ |
16 | 16 | import { expect } from 'chai'; |
17 | 17 | import { NetworkRepository } from '../../src/infrastructure/NetworkRepository'; |
18 | | -import { NetworkType } from '../../src/model/blockchain/NetworkType'; |
| 18 | +import { NetworkType } from '../../src/model/network/NetworkType'; |
19 | 19 | import { IntegrationTestHelper } from './IntegrationTestHelper'; |
20 | 20 |
|
21 | 21 | describe('NetworkHttp', () => { |
@@ -45,13 +45,30 @@ describe('NetworkHttp', () => { |
45 | 45 | }); |
46 | 46 | }); |
47 | 47 |
|
48 | | - describe('getNetworkFees', () => { |
49 | | - it('should return network fees', async () => { |
50 | | - const fees = await networkRepository.getNetworkFees().toPromise(); |
| 48 | + describe('getTransactionFees', () => { |
| 49 | + it('should return transaction fees', async () => { |
| 50 | + const fees = await networkRepository.getTransactionFees().toPromise(); |
51 | 51 | expect(fees.averageFeeMultiplier).to.be.not.null; |
52 | 52 | expect(fees.highestFeeMultiplier).to.be.not.null; |
53 | 53 | expect(fees.lowestFeeMultiplier).to.be.not.null; |
54 | 54 | expect(fees.medianFeeMultiplier).to.be.not.null; |
55 | 55 | }); |
56 | 56 | }); |
| 57 | + describe('getRentalFees', () => { |
| 58 | + it('should return rental fees', async () => { |
| 59 | + const fees = await networkRepository.getRentalFees().toPromise(); |
| 60 | + expect(fees.effectiveChildNamespaceRentalFee).to.be.not.null; |
| 61 | + expect(fees.effectiveMosaicRentalFee).to.be.not.null; |
| 62 | + expect(fees.effectiveRootNamespaceRentalFeePerBlock).to.be.not.null; |
| 63 | + }); |
| 64 | + }); |
| 65 | + |
| 66 | + describe('getNetworkProperties', () => { |
| 67 | + it('should return network configuration', async () => { |
| 68 | + const config = await networkRepository.getNetworkProperties().toPromise(); |
| 69 | + expect(config.network).to.be.not.null; |
| 70 | + expect(config.chain).to.be.not.null; |
| 71 | + expect(config.plugins).to.be.not.null; |
| 72 | + }); |
| 73 | + }); |
57 | 74 | }); |
0 commit comments