mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Bug fix + Url query
This commit is contained in:
@@ -110,6 +110,12 @@ WAClientTest('Misc', (client) => {
|
||||
it('should return the stories', async () => {
|
||||
await client.getStories()
|
||||
})
|
||||
it('should return a preview', async () => {
|
||||
const info = await client.urlQuery ('fren have you seen https://www.github.com/adiwajshing/Baileys')
|
||||
assert.equal (info["matched-text"], 'https://www.github.com/adiwajshing/Baileys')
|
||||
|
||||
await assert.rejects (() => client.urlQuery('oh hello there'))
|
||||
})
|
||||
it('should return the profile picture', async () => {
|
||||
const response = await client.getProfilePicture(testJid)
|
||||
assert.ok(response)
|
||||
|
||||
Reference in New Issue
Block a user