mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 11:39:15 +00:00
13 lines
339 B
JavaScript
13 lines
339 B
JavaScript
const { test } = require('uvu')
|
|
const assert = require('uvu/assert')
|
|
const MockProvider = require('../mock')
|
|
|
|
test(`ProviderClass`, async () => {
|
|
const provider = new MockProvider()
|
|
const msg = await provider.sendMessage('123456789', 'hola')
|
|
assert.is(msg.userId, '123456789')
|
|
assert.is(msg.message, 'hola')
|
|
})
|
|
|
|
test.run()
|