From 48cee4e22b0eb3716a3694571621fc70d4c59a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Conselheiro?= Date: Mon, 17 Jun 2024 16:01:29 +0000 Subject: [PATCH] fixing names of nostr types and types guards in unit tests descriptions --- core.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core.test.ts b/core.test.ts index 5ae8224..20c4385 100644 --- a/core.test.ts +++ b/core.test.ts @@ -77,7 +77,7 @@ test('NostrTypeGuard isNEvent with invalid nevent', () => { expect(is).toBeFalse() }) -test('NostrTypeGuard isNAddress', () => { +test('NostrTypeGuard isNAddr', () => { const is = NostrTypeGuard.isNAddr( 'naddr1qqxnzdesxqmnxvpexqunzvpcqyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqzypve7elhmamff3sr5mgxxms4a0rppkmhmn7504h96pfcdkpplvl2jqcyqqq823cnmhuld', ) @@ -85,43 +85,43 @@ test('NostrTypeGuard isNAddress', () => { expect(is).toBeTrue() }) -test('NostrTypeGuard isNAddress with invalid nadress', () => { +test('NostrTypeGuard isNAddr with invalid nadress', () => { const is = NostrTypeGuard.isNAddr('nsec1lqw6zqyanj9mz8gwhdam6tqge42vptz4zg93qsfej440xm5h5esqya0juv') expect(is).toBeFalse() }) -test('NostrTypeGuard isNSecret', () => { +test('NostrTypeGuard isNSec', () => { const is = NostrTypeGuard.isNSec('nsec1lqw6zqyanj9mz8gwhdam6tqge42vptz4zg93qsfej440xm5h5esqya0juv') expect(is).toBeTrue() }) -test('NostrTypeGuard isNSecret with invalid nsec', () => { +test('NostrTypeGuard isNSec with invalid nsec', () => { const is = NostrTypeGuard.isNSec('nsec1lqw6zqyanj9mz8gwhdam6tqge42vptz4zg93qsfej440xm5h5esqya0juã') expect(is).toBeFalse() }) -test('NostrTypeGuard isNSecret with invalid nsec', () => { +test('NostrTypeGuard isNSec with invalid nsec', () => { const is = NostrTypeGuard.isNSec('nprofile1qqsvc6ulagpn7kwrcwdqgp797xl7usumqa6s3kgcelwq6m75x8fe8yc5usxdg') expect(is).toBeFalse() }) -test('NostrTypeGuard isNPublic', () => { +test('NostrTypeGuard isNPub', () => { const is = NostrTypeGuard.isNPub('npub1jz5mdljkmffmqjshpyjgqgrhdkuxd9ztzasv8xeh5q92fv33sjgqy4pats') expect(is).toBeTrue() }) -test('NostrTypeGuard isNPublic with invalid npub', () => { +test('NostrTypeGuard isNPub with invalid npub', () => { const is = NostrTypeGuard.isNPub('npub1jz5mdljkmffmqjshpyjgqgrhdkuxd9ztzãsv8xeh5q92fv33sjgqy4pats') expect(is).toBeFalse() }) -test('NostrTypeGuard isNPublic with invalid npub', () => { +test('NostrTypeGuard isNPub with invalid npub', () => { const is = NostrTypeGuard.isNPub('nsec1lqw6zqyanj9mz8gwhdam6tqge42vptz4zg93qsfej440xm5h5esqya0juv') expect(is).toBeFalse()