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')