mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update Tests.Groups.ts
This commit is contained in:
@@ -61,9 +61,9 @@ WAConnectionTest('Groups', (conn) => {
|
|||||||
it('should update the subject', async () => {
|
it('should update the subject', async () => {
|
||||||
const subject = 'Baileyz ' + Math.floor(Math.random()*5)
|
const subject = 'Baileyz ' + Math.floor(Math.random()*5)
|
||||||
const waitForEvent = new Promise (resolve => {
|
const waitForEvent = new Promise (resolve => {
|
||||||
conn.on ('chat-update', ({jid, title}) => {
|
conn.on ('chat-update', ({jid, name}) => {
|
||||||
if (jid === gid) {
|
if (jid === gid) {
|
||||||
assert.equal (title, subject)
|
assert.equal (name, subject)
|
||||||
resolve ()
|
resolve ()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user