Correct property access

This commit is contained in:
Daniel Lugo 2021-09-23 11:55:35 -04:00
parent 0c5e13b303
commit 596c7c8281

View file

@ -447,11 +447,12 @@ describe('gun smith', () => {
user.leave()
expect(user.is).toBeUndefined()
/** @type {GunT.AuthAck} */
const authAck = await new Promise(res =>
user.auth(alias, pass, ack => res(ack))
)
expect(authAck.err).toBeUndefined()
expect(authAck.sea.pub).toEqual(pub)
expect(authAck.sea?.pub).toEqual(pub)
expect(user.is?.pub).toEqual(pub)
user.leave()
done()