mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-13 02:18:51 +00:00
Convert all tests to TypeScript
This commit is contained in:
7
nip13.test.ts
Normal file
7
nip13.test.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import {nip13} from '.'
|
||||
|
||||
test('identifies proof-of-work difficulty', async () => {
|
||||
const id = '000006d8c378af1779d2feebc7603a125d99eca0ccf1085959b307f64e5dd358'
|
||||
const difficulty = nip13.getPow(id)
|
||||
expect(difficulty).toEqual(21)
|
||||
})
|
||||
Reference in New Issue
Block a user