UNPKG

@helium/http

Version:

HTTP library for interacting with the Helium blockchain API

32 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require(".."); describe('production', () => { it('returns the production network', () => { const network = __1.Network.production; expect(network.endpoint).toBe('https://api.helium.io/v1'); expect(network.version).toBe(1); }); }); describe('staging', () => { it('returns the staging network', () => { const network = __1.Network.staging; expect(network.endpoint).toBe('https://api.helium.wtf/v1'); expect(network.version).toBe(1); }); }); describe('testnet', () => { it('returns the testnet network', () => { const network = __1.Network.testnet; expect(network.endpoint).toBe('https://testnet-api.helium.wtf/v1'); expect(network.version).toBe(1); }); }); describe('devnet', () => { it('returns the devnet network', () => { const network = __1.Network.devnet; expect(network.endpoint).toBe('https://devnet-api.helium.wtf/v1'); expect(network.version).toBe(1); }); }); //# sourceMappingURL=Network.spec.js.map