From 2089cb124d1f8b8bde286c3cb33e8acea54e9727 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 12 Mar 2022 14:52:03 -0600 Subject: [PATCH] Test account.moved --- app/soapbox/__fixtures__/account-moved.json | 46 ++++++++++++++++++ .../reducers/__tests__/accounts-test.js | Bin 1933 -> 1009 bytes 2 files changed, 46 insertions(+) create mode 100644 app/soapbox/__fixtures__/account-moved.json diff --git a/app/soapbox/__fixtures__/account-moved.json b/app/soapbox/__fixtures__/account-moved.json new file mode 100644 index 0000000000..dbb194916a --- /dev/null +++ b/app/soapbox/__fixtures__/account-moved.json @@ -0,0 +1,46 @@ +{ + "id": "106801667066418367", + "username": "benis911", + "acct": "benis911", + "display_name": "", + "locked": false, + "bot": false, + "discoverable": null, + "group": false, + "created_at": "2021-08-22T00:00:00.000Z", + "note": "", + "url": "https://mastodon.social/@benis911", + "avatar": "https://mastodon.social/avatars/original/missing.png", + "avatar_static": "https://mastodon.social/avatars/original/missing.png", + "header": "https://mastodon.social/headers/original/missing.png", + "header_static": "https://mastodon.social/headers/original/missing.png", + "followers_count": 0, + "following_count": 0, + "statuses_count": 5, + "last_status_at": "2022-02-23", + "moved": { + "id": "107945464165013501", + "username": "alex", + "acct": "alex@fedibird.com", + "display_name": "", + "locked": false, + "bot": false, + "discoverable": false, + "group": false, + "created_at": "2020-01-27T00:00:00.000Z", + "note": "

", + "url": "https://fedibird.com/@alex", + "avatar": "https://mastodon.social/avatars/original/missing.png", + "avatar_static": "https://mastodon.social/avatars/original/missing.png", + "header": "https://mastodon.social/headers/original/missing.png", + "header_static": "https://mastodon.social/headers/original/missing.png", + "followers_count": 1, + "following_count": 1, + "statuses_count": 5, + "last_status_at": null, + "emojis": [], + "fields": [] + }, + "emojis": [], + "fields": [] +} diff --git a/app/soapbox/reducers/__tests__/accounts-test.js b/app/soapbox/reducers/__tests__/accounts-test.js index 973ac4f1eac59aeea4d53129618d7583d52a322f..4b7915d3246f2eb3d5269b178218b576776db985 100644 GIT binary patch delta 194 zcmeC>|HwW;l_#-S!813vv?MVpCv~D+^=3oHGmM;Yk;#9VbQQT2fFQF(Lp?V$FEcGO zwOAohAveD)HANvYIXS;HuVk_)lRYn#tqYc!oXk{~U}#`wVPI%xW^Q0+W@2bzY-X;m zY0U*TO+g{Gq98T7M58FRxHP9k53EU3uO#0oRYTp-z}(Wr)C8!<%+$cp7>GgoK#r&d I(;yOr0lrK)qW}N^ literal 1933 zcmb`HQE!_t6oudWEAAU)%E&fp4{Oy)U6g9wn$jihGjiajaR->%rfL`Ezwg@E5ZGF2 zQ}RF{zP>*9J16j>5>mq!=Bxsy;G!sM%~m0G@aK9Lw9364L^K3ee zZ?A5Wi}`iDxM_=(VAV=IO<1bADAlB?N4d9GVpgXpUH2%W+Emn~R#Y>YfIH!h(dD|h z(pP$S`?jFjPi*z%B4cXP>+FvkbWM^qf6}!?l_agC=w6A^XwOiklCLlf+U;(RU<~01 zPCvu;2!QJ_P#aO_8AzmNCFl(TFS+I{2c?8E%8}y2-n#mRoD~Z6@x4qcs1>>NT;VbFC6C*~c4okCADL3;+Dfq5*~ipmWE9;Y zP59~YFFBA=wr*YtQnnwcGafb)7LL@u7QE zV|Z_M?{#bt8SITR1Eb;Z{$SC-hpx3m7 j{4L}Dh2g{XQgUCH){+DG^VoLrKv-Wt!$-vC+gyGFTZ&L8