test(e2e): fixed e2e tests
This commit is contained in:
parent
635f02162a
commit
260de0db7f
2 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue