nip27: make matchAll a generator function

This commit is contained in:
Alex Gleason
2023-04-22 19:22:06 -05:00
parent 6a037d1658
commit 45c07a5f45
2 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ test('matchAll', () => {
'Hello nostr:npub108pv4cg5ag52nq082kd5leu9ffrn2gdg6g4xdwatn73y36uzplmq9uyev6!\n\nnostr:note1gmtnz6q2m55epmlpe3semjdcq987av3jvx4emmjsa8g3s9x7tg4sclreky'
)
expect(result).toEqual([
expect([...result]).toEqual([
{
uri: 'nostr:npub108pv4cg5ag52nq082kd5leu9ffrn2gdg6g4xdwatn73y36uzplmq9uyev6',
value: 'npub108pv4cg5ag52nq082kd5leu9ffrn2gdg6g4xdwatn73y36uzplmq9uyev6',