mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
Refactor imports: use file extension, improve tree shaking, update tests
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import fetch from 'node-fetch'
|
||||
import {nip39} from '.'
|
||||
|
||||
import {useFetchImplementation, validateGithub} from './nip39.ts'
|
||||
|
||||
test('validate github claim', async () => {
|
||||
nip39.useFetchImplementation(fetch)
|
||||
useFetchImplementation(fetch)
|
||||
|
||||
let result = await nip39.validateGithub(
|
||||
let result = await validateGithub(
|
||||
'npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z',
|
||||
'vitorpamplona',
|
||||
'cf19e2d1d7f8dac6348ad37b35ec8421'
|
||||
|
||||
Reference in New Issue
Block a user