Update Tests.Groups.ts

This commit is contained in:
Adhiraj
2020-08-23 22:43:26 +05:30
parent a82d5bb1fe
commit 9f8ff1ea29

View File

@@ -61,9 +61,9 @@ WAConnectionTest('Groups', (conn) => {
it('should update the subject', async () => {
const subject = 'Baileyz ' + Math.floor(Math.random()*5)
const waitForEvent = new Promise (resolve => {
conn.on ('chat-update', ({jid, title}) => {
conn.on ('chat-update', ({jid, name}) => {
if (jid === gid) {
assert.equal (title, subject)
assert.equal (name, subject)
resolve ()
}
})