Update pipeline to Node 24. Update Lerna. Update Vitepress to Beta. Replace...
This commit is contained in:
@@ -4,19 +4,18 @@
|
||||
// However, Chaingraph backend is currently broken for many queries, so let's not do this yet.
|
||||
|
||||
import { beforeAll, describe, it, expect } from 'vitest';
|
||||
import {
|
||||
BaseBlockchain,
|
||||
BlockchainChaingraph,
|
||||
BlockchainElectrum,
|
||||
} from '../../src/index.js';
|
||||
import { BaseBlockchain, BlockchainElectrum } from '../../src/index.js';
|
||||
|
||||
const adapters: Record<
|
||||
string,
|
||||
() => Promise<BaseBlockchain<unknown, unknown>>
|
||||
> = {
|
||||
chaingraph: async () => {
|
||||
return await BlockchainChaingraph.from();
|
||||
},
|
||||
// Commenting out since the chaingraph endopoints we are hitting are currently broken.
|
||||
// demo won't allow non-browser clients
|
||||
// Pat's server isn't responding to block height requests correctly (or we are using an old version, which the demo server is also running).
|
||||
// chaingraph: async () => {
|
||||
// return await BlockchainChaingraph.from();
|
||||
// },
|
||||
electrum: async () => {
|
||||
return await BlockchainElectrum.from();
|
||||
},
|
||||
@@ -59,7 +58,7 @@ describe.each(Object.entries(adapters))('%s Adapter', (name, createAdapter) => {
|
||||
});
|
||||
|
||||
it(`${name}.fetchBlockHeader() `, async () => {
|
||||
const result = await blockchain.fetchBlockHeader(testBlockHeight);
|
||||
const result = await blockchain.fetchBlockHeader(1);
|
||||
|
||||
expect(result).toBeDefined();
|
||||
expect(result.toHex()).toBeTypeOf('string');
|
||||
|
||||
Reference in New Issue
Block a user