Skip to content

Commit

Permalink
fixing names of nostr types and types guards in unit tests descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioconselheiro committed Jun 17, 2024
1 parent 5c620ba commit 48cee4e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,51 +77,51 @@ test('NostrTypeGuard isNEvent with invalid nevent', () => {
expect(is).toBeFalse()
})

test('NostrTypeGuard isNAddress', () => {
test('NostrTypeGuard isNAddr', () => {
const is = NostrTypeGuard.isNAddr(
'naddr1qqxnzdesxqmnxvpexqunzvpcqyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqzypve7elhmamff3sr5mgxxms4a0rppkmhmn7504h96pfcdkpplvl2jqcyqqq823cnmhuld',
)

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()
Expand Down

0 comments on commit 48cee4e

Please sign in to comment.