Add a method for get authorities and update tests #18

Merged
nabarun merged 7 commits from deep-stack/registry-sdk:iv-get-authorities into main 2024-08-05 07:53:14 +00:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit 06344cce50 - Show all commits

View File

@ -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);

View File

@ -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]);
});
});