You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
491 B

import { describe, expect, it } from 'vitest'
import { buildReplyReadRelayList } from '@/lib/relay-list-builder'
describe('buildReplyReadRelayList relayAuthoritative', () => {
it('returns only thread hints and author/user layers without favorite bootstrap', async () => {
const out = await buildReplyReadRelayList(
undefined,
undefined,
[],
['wss://nostr.land/'],
{ relayAuthoritative: true }
)
expect(out).toEqual(['wss://nostr.land/'])
})
})