UNPKG

wallet-storage

Version:

BRC100 conforming wallet, wallet storage and wallet signer components

26 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const TestUtilsWalletStorage_1 = require("../../utils/TestUtilsWalletStorage"); describe('Wallet getNetwork Tests', () => { jest.setTimeout(99999999); const env = TestUtilsWalletStorage_1._tu.getEnv('test'); const ctxs = []; beforeAll(async () => { if (!env.noMySQL) ctxs.push(await TestUtilsWalletStorage_1._tu.createLegacyWalletMySQLCopy('getNetworkTests')); ctxs.push(await TestUtilsWalletStorage_1._tu.createLegacyWalletSQLiteCopy('getNetworkTests')); }); afterAll(async () => { for (const ctx of ctxs) { await ctx.storage.destroy(); } }); test('should return the correct network', async () => { for (const { wallet } of ctxs) { const result = await wallet.getNetwork({}); // Replace 'testnet' with the expected network for your test environment expect(result).toEqual({ network: 'testnet' }); } }); }); //# sourceMappingURL=getNetwork.test.js.map