From f788b5eae1c5b8ce1d0682c5f96bb192a24945f2 Mon Sep 17 00:00:00 2001 From: Mohammad Twin Date: Wed, 16 Aug 2023 14:25:01 +0400 Subject: [PATCH] tests: tests were adjust with new network graph activity --- __tests__/integration/memberActivity.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/integration/memberActivity.test.ts b/__tests__/integration/memberActivity.test.ts index 17aea01d..b7356e80 100644 --- a/__tests__/integration/memberActivity.test.ts +++ b/__tests__/integration/memberActivity.test.ts @@ -365,14 +365,14 @@ describe('member-activity routes', () => { expect(Array.isArray(res.body)).toBe(true); expect(res.body).toHaveLength(2) expect(res.body).toEqual(expect.arrayContaining([({ - from: { id: '123456789', radius: 3, username: 'behzad_rabiei', stats: "SENDER" }, - to: { id: '987654321', radius: 3, username: 'mrjackalop', stats: "RECEIVER" }, + from: { avatar: null, id: "123456789", joinedAt: "2023-03-07T00:00:00.000Z", ngu: "Behzad", radius: 3, roles: [], stats: "SENDER", username: "behzad_rabiei" }, + to: { avatar: "AvatarLink", id: "987654321", joinedAt: "2023-03-31T00:00:00.000Z", ngu: "Daniel", radius: 3, roles: [], stats: "RECEIVER", username: "mrjackalop"}, width: 1 }) ])) expect(res.body).toEqual(expect.arrayContaining([({ - from: { id: '987654321', radius: 3, username: 'mrjackalop', stats: "RECEIVER" }, - to: { id: '123456789', radius: 3, username: 'behzad_rabiei', stats: "SENDER" }, + from: { avatar: "AvatarLink", id: "987654321", joinedAt: "2023-03-31T00:00:00.000Z", ngu: "Daniel", radius: 3, roles: [], stats: "RECEIVER", username: "mrjackalop"}, + to: { avatar: null, id: "123456789", joinedAt: "2023-03-07T00:00:00.000Z", ngu: "Behzad", radius: 3, roles: [], stats: "SENDER", username: "behzad_rabiei"}, width: 2 }) ]))