mirror of
https://github.com/zhigang1992/mtcute.git
synced 2026-04-30 05:05:10 +08:00
test(e2e): fixed e2e tests
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user