mirror of
https://github.com/aljazceru/pubky-core.git
synced 2025-12-31 21:04:34 +01:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
import test from 'tape'
|
|
|
|
import { PubkyClient, Keypair, PublicKey } from '../index.cjs'
|
|
|
|
const TLD = '8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo';
|
|
|
|
// TODO: test HTTPs too somehow.
|
|
|
|
test.skip("basic fetch", async (t) => {
|
|
let client = PubkyClient.testnet();
|
|
|
|
let response = await client.fetch(`http://${TLD}/`, new Uint8Array([]));
|
|
|
|
t.equal(response.status, 200);
|
|
})
|
|
|