|
| 1 | +const { |
| 2 | + public_chain, |
| 3 | + futurenet, |
| 4 | + testnet, |
| 5 | + sandbox, |
| 6 | + standalone, |
| 7 | +} = require('../dist/index.js') |
| 8 | + |
| 9 | +const PUBLIC_PASSPHRASE = 'Public Global Stellar Network ; September 2015' |
| 10 | +const TESTNET_PASSPHRASE = 'Test SDF Network ; September 2015' |
| 11 | +const FUTURENET_PASSPHRASE = 'Test SDF Future Network ; October 2022' |
| 12 | +const SANDBOX_PASSPHRASE = 'Local Sandbox Stellar Network ; September 2022' |
| 13 | +const STANDALONE_PASSPHRASE = 'Standalone Network ; February 2017' |
| 14 | + |
| 15 | +describe('Module exports', () => { |
| 16 | + test('should export public_chain', () => { |
| 17 | + expect(public_chain.id).toEqual('public') |
| 18 | + expect(public_chain.name).toEqual('Public') |
| 19 | + expect(public_chain.networkPassphrase).toEqual(PUBLIC_PASSPHRASE) |
| 20 | + }) |
| 21 | + |
| 22 | + test('should export futurenet', () => { |
| 23 | + expect(futurenet.id).toEqual('public') |
| 24 | + expect(futurenet.name).toEqual('Futurenet') |
| 25 | + expect(futurenet.networkPassphrase).toEqual(FUTURENET_PASSPHRASE) |
| 26 | + }) |
| 27 | + |
| 28 | + test('should export testnet', () => { |
| 29 | + expect(testnet.id).toEqual('public') |
| 30 | + expect(testnet.name).toEqual('Testnet') |
| 31 | + expect(testnet.networkPassphrase).toEqual(TESTNET_PASSPHRASE) |
| 32 | + }) |
| 33 | + |
| 34 | + test('should export sandbox', () => { |
| 35 | + expect(sandbox.id).toEqual('public') |
| 36 | + expect(sandbox.name).toEqual('Sandbox') |
| 37 | + expect(sandbox.networkPassphrase).toEqual(SANDBOX_PASSPHRASE) |
| 38 | + }) |
| 39 | + |
| 40 | + test('should export standalone', () => { |
| 41 | + expect(standalone.id).toEqual('public') |
| 42 | + expect(standalone.name).toEqual('Standalone') |
| 43 | + expect(standalone.networkPassphrase).toEqual(STANDALONE_PASSPHRASE) |
| 44 | + }) |
| 45 | +}) |
0 commit comments