Correct property access
This commit is contained in:
parent
0c5e13b303
commit
596c7c8281
1 changed files with 2 additions and 1 deletions
|
|
@ -447,11 +447,12 @@ describe('gun smith', () => {
|
||||||
user.leave()
|
user.leave()
|
||||||
expect(user.is).toBeUndefined()
|
expect(user.is).toBeUndefined()
|
||||||
|
|
||||||
|
/** @type {GunT.AuthAck} */
|
||||||
const authAck = await new Promise(res =>
|
const authAck = await new Promise(res =>
|
||||||
user.auth(alias, pass, ack => res(ack))
|
user.auth(alias, pass, ack => res(ack))
|
||||||
)
|
)
|
||||||
expect(authAck.err).toBeUndefined()
|
expect(authAck.err).toBeUndefined()
|
||||||
expect(authAck.sea.pub).toEqual(pub)
|
expect(authAck.sea?.pub).toEqual(pub)
|
||||||
expect(user.is?.pub).toEqual(pub)
|
expect(user.is?.pub).toEqual(pub)
|
||||||
user.leave()
|
user.leave()
|
||||||
done()
|
done()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue