update nip11 test.
This commit is contained in:
parent
266dbdf766
commit
9a612e59a2
2
jsr.json
2
jsr.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@nostr/tools",
|
"name": "@nostr/tools",
|
||||||
"version": "2.10.4",
|
"version": "2.11.0",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./index.ts",
|
".": "./index.ts",
|
||||||
"./core": "./core.ts",
|
"./core": "./core.ts",
|
||||||
|
|
|
@ -10,7 +10,9 @@ describe('requesting relay as for NIP11', () => {
|
||||||
const info = await fetchRelayInformation('wss://nos.lol')
|
const info = await fetchRelayInformation('wss://nos.lol')
|
||||||
expect(info.name).toEqual('nos.lol')
|
expect(info.name).toEqual('nos.lol')
|
||||||
expect(info.description).toContain('Generally accepts notes, except spammy ones.')
|
expect(info.description).toContain('Generally accepts notes, except spammy ones.')
|
||||||
expect(info.supported_nips).toEqual([1, 2, 4, 9, 11, 12, 16, 20, 22, 28, 33, 40])
|
expect(info.supported_nips).toContain(1)
|
||||||
|
expect(info.supported_nips).toContain(11)
|
||||||
|
expect(info.supported_nips).toContain(70)
|
||||||
expect(info.software).toEqual('git+https://github.com/hoytech/strfry.git')
|
expect(info.software).toEqual('git+https://github.com/hoytech/strfry.git')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"name": "nostr-tools",
|
"name": "nostr-tools",
|
||||||
"version": "2.10.4",
|
"version": "2.11.0",
|
||||||
"description": "Tools for making a Nostr client.",
|
"description": "Tools for making a Nostr client.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue