From 06344cce509cfa071996df8758b0850f72b69b23 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 5 Aug 2024 12:02:34 +0530 Subject: [PATCH] Fix typos --- src/nameservice-expiry.test.ts | 4 ++-- src/naming.test.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/nameservice-expiry.test.ts b/src/nameservice-expiry.test.ts index 262d327..c19de2a 100644 --- a/src/nameservice-expiry.test.ts +++ b/src/nameservice-expiry.test.ts @@ -60,7 +60,7 @@ const nameserviceExpiryTests = () => { }); test('Wait for expiry duration', (done) => { - // Wait expirty time + time for a block to be executed + // Wait for expiry time + time for a block to be executed const expiryTime = 60 * 1000; const waitTime = expiryTime + (3 * 1000); @@ -88,7 +88,7 @@ const nameserviceExpiryTests = () => { }); test('Wait for expiry duration', (done) => { - // Wait expirty time + time for a block to be executed + // Wait for expiry time + time for a block to be executed const expiryTime = 60 * 1000; const waitTime = expiryTime + (3 * 1000); diff --git a/src/naming.test.ts b/src/naming.test.ts index 0711091..1bac15b 100644 --- a/src/naming.test.ts +++ b/src/naming.test.ts @@ -183,13 +183,11 @@ const namingTests = () => { expect(authorities.length).toEqual(4); expectedEntryKeys.forEach(key => { authorities.forEach((authority: any) => { + expect(authority).toHaveProperty('name'); expect(authority.entry).toHaveProperty(key); }); }); authorities.forEach((authority: any, index: number) => { - expect(authority).toHaveProperty('name'); - expect(authority.entry).toHaveProperty('ownerAddress'); - expect(authority.entry).toHaveProperty('status'); expect(authority).toMatchObject(reservedAuthorities[index]); }); });