chatDB tests + message length identical with WA

This commit is contained in:
Adhiraj
2020-09-02 22:40:51 +05:30
parent f12551ba18
commit 4c646e3e02
6 changed files with 41 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ import * as assert from 'assert'
import {WAConnection} from '../WAConnection/WAConnection'
import { AuthenticationCredentialsBase64, BaileysError, ReconnectMode, DisconnectReason } from '../WAConnection/Constants'
import { delay } from '../WAConnection/Utils'
import { assertChatDBIntegrity } from './Common'
describe('QR Generation', () => {
it('should generate QR', async () => {
@@ -37,6 +38,8 @@ describe('Test Connect', () => {
assert.ok(conn.user?.phone)
assert.ok (conn.user?.imgUrl || conn.user.imgUrl === '')
assertChatDBIntegrity (conn)
conn.close()
auth = conn.base64EncodedAuthInfo()
})