mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
web-whatsapp work
This commit is contained in:
13
packages/provider/tests/provider.class.test.js
Normal file
13
packages/provider/tests/provider.class.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { test } = require('uvu')
|
||||
const assert = require('uvu/assert')
|
||||
const MockProvider = require('../adapters/mock')
|
||||
|
||||
test(`ProviderClass`, async () => {
|
||||
const provider = new MockProvider()
|
||||
const msg = await provider.sendMessage('123456789', 'hola')
|
||||
console.log(msg)
|
||||
assert.is(msg.userId, '123456789')
|
||||
assert.is(msg.message, 'hola')
|
||||
})
|
||||
|
||||
test.run()
|
||||
Reference in New Issue
Block a user