Add a method for get authorities and update tests #18
@ -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);
|
||||
|
||||
|
@ -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]);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user