From 1519bfa96901768812849c6dcac646f94875cc44 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 27 Jun 2022 10:02:21 -0400 Subject: [PATCH] Fix tests from TSX conversion --- .../actions/__tests__/accounts.test.ts | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/app/soapbox/actions/__tests__/accounts.test.ts b/app/soapbox/actions/__tests__/accounts.test.ts index 9e5903f3b..dcfeabcf1 100644 --- a/app/soapbox/actions/__tests__/accounts.test.ts +++ b/app/soapbox/actions/__tests__/accounts.test.ts @@ -1074,13 +1074,13 @@ describe('expandFollowers()', () => { describe('when logged in', () => { beforeEach(() => { const state = rootReducer(undefined, {}) - .set('user_lists', ImmutableMap({ + .set('user_lists', { followers: ImmutableMap({ - [id]: ImmutableMap({ + [id]: { next: 'next_url', - }), + }, }), - })) + }) .set('me', '123'); store = mockStore(state); }); @@ -1088,13 +1088,13 @@ describe('expandFollowers()', () => { describe('when the url is null', () => { beforeEach(() => { const state = rootReducer(undefined, {}) - .set('user_lists', ImmutableMap({ + .set('user_lists', { followers: ImmutableMap({ - [id]: ImmutableMap({ + [id]: { next: null, - }), + }, }), - })) + }) .set('me', '123'); store = mockStore(state); }); @@ -1232,13 +1232,13 @@ describe('expandFollowing()', () => { describe('when logged in', () => { beforeEach(() => { const state = rootReducer(undefined, {}) - .set('user_lists', ImmutableMap({ + .set('user_lists', { following: ImmutableMap({ - [id]: ImmutableMap({ + [id]: { next: 'next_url', - }), + }, }), - })) + }) .set('me', '123'); store = mockStore(state); }); @@ -1246,13 +1246,13 @@ describe('expandFollowing()', () => { describe('when the url is null', () => { beforeEach(() => { const state = rootReducer(undefined, {}) - .set('user_lists', ImmutableMap({ + .set('user_lists', { following: ImmutableMap({ - [id]: ImmutableMap({ + [id]: { next: null, - }), + }, }), - })) + }) .set('me', '123'); store = mockStore(state); }); @@ -1498,11 +1498,11 @@ describe('expandFollowRequests()', () => { describe('when logged in', () => { beforeEach(() => { const state = rootReducer(undefined, {}) - .set('user_lists', ImmutableMap({ - follow_requests: ImmutableMap({ + .set('user_lists', { + follow_requests: { next: 'next_url', - }), - })) + }, + }) .set('me', '123'); store = mockStore(state); }); @@ -1510,11 +1510,11 @@ describe('expandFollowRequests()', () => { describe('when the url is null', () => { beforeEach(() => { const state = rootReducer(undefined, {}) - .set('user_lists', ImmutableMap({ - follow_requests: ImmutableMap({ + .set('user_lists', { + follow_requests: { next: null, - }), - })) + }, + }) .set('me', '123'); store = mockStore(state); });