From 260de0db7fc9230bc126acfbb8f3c12a88166fd8 Mon Sep 17 00:00:00 2001 From: alina sireneva Date: Fri, 31 May 2024 21:28:14 +0300 Subject: [PATCH] test(e2e): fixed e2e tests --- e2e/deno/tests/02.methods.ts | 1 + e2e/node/ts/tests/02.methods.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/e2e/deno/tests/02.methods.ts b/e2e/deno/tests/02.methods.ts index e3e5a140..bc432d1f 100644 --- a/e2e/deno/tests/02.methods.ts +++ b/e2e/deno/tests/02.methods.ts @@ -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') diff --git a/e2e/node/ts/tests/02.methods.ts b/e2e/node/ts/tests/02.methods.ts index 32335739..57f7c4b7 100644 --- a/e2e/node/ts/tests/02.methods.ts +++ b/e2e/node/ts/tests/02.methods.ts @@ -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')