test(e2e): fixed e2e tests

This commit is contained in:
alina 🌸 2024-05-31 21:28:14 +03:00
parent 635f02162a
commit 260de0db7f
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 2 additions and 0 deletions

View file

@ -24,6 +24,7 @@ Deno.test('2. calling methods', { sanitizeResources: false }, async (t) => {
})
await t.step('getHistory(777000)', async () => {
await tg.findDialogs(777000) // ensure it's cached
const history = await tg.getHistory(777000, { limit: 5 })
assertEquals(history[0].chat.chatType, 'private')

View file

@ -27,6 +27,7 @@ describe('2. calling methods', function () {
})
it('getHistory(777000)', async () => {
await tg.findDialogs(777000) // ensure it's cached
const history = await tg.getHistory(777000, { limit: 5 })
expect(history[0].chat.chatType).to.equal('private')