test('should return null for an unknown address', async () => {
const rolodex = new Rolodex()
await rolodex.add('JohnDoe', NANO_TEST_VECTORS.ADDRESS_0)
- assert.equals(rolodex.getName(NANO_TEST_VECTORS.ADDRESS_1), null)
- assert.notEqual(rolodex.getName(NANO_TEST_VECTORS.ADDRESS_1), undefined)
+ assert.ok(rolodex.getName(NANO_TEST_VECTORS.ADDRESS_1) === null)
+ assert.ok(rolodex.getName(NANO_TEST_VECTORS.ADDRESS_1) !== undefined)
})
test('should return null for a blank address', async () => {
const rolodex = new Rolodex()
await rolodex.add('JohnDoe', NANO_TEST_VECTORS.ADDRESS_0)
//@ts-expect-error
- assert.equals(rolodex.getName(undefined), null)
+ assert.ok(rolodex.getName(undefined) === null)
//@ts-expect-error
- assert.notEqual(rolodex.getName(undefined), undefined)
+ assert.ok(rolodex.getName(undefined) !== undefined)
//@ts-expect-error
- assert.equals(rolodex.getName(null), null)
+ assert.ok(rolodex.getName(null) === null)
//@ts-expect-error
- assert.notEqual(rolodex.getName(null), undefined)
- assert.equals(rolodex.getName(''), null)
- assert.notEqual(rolodex.getName(''), undefined)
+ assert.ok(rolodex.getName(null) !== undefined)
+ assert.ok(rolodex.getName('') === null)
+ assert.ok(rolodex.getName('') !== undefined)
})
})