From 596c7c8281a45f4d053c768a21346452b422e487 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Thu, 23 Sep 2021 11:55:35 -0400 Subject: [PATCH] Correct property access --- utils/GunSmith/GunSmith.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/GunSmith/GunSmith.spec.js b/utils/GunSmith/GunSmith.spec.js index 160862fc..5dca306d 100644 --- a/utils/GunSmith/GunSmith.spec.js +++ b/utils/GunSmith/GunSmith.spec.js @@ -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()