From 0f68e6a6ffca94239630801eaaed9a9531d5cef2 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 4 May 2023 00:24:14 -0500 Subject: [PATCH] Add mock data to test unknown labels (#578) --- __e2e__/mock-server.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/__e2e__/mock-server.ts b/__e2e__/mock-server.ts index 858ac5e0..3577990d 100644 --- a/__e2e__/mock-server.ts +++ b/__e2e__/mock-server.ts @@ -81,6 +81,9 @@ async function main() { 'nudity-account', 'nudity-profile', 'nudity-posts', + 'unknown-account', + 'unknown-profile', + 'unknown-posts', 'muted-account', ]) { await server.mocker.createUser(user) @@ -164,6 +167,35 @@ async function main() { ), ) + await server.mocker.labelAccount( + 'not-a-real-label', + 'unknown-account', + ) + await server.mocker.labelProfile( + 'not-a-real-label', + 'unknown-profile', + ) + await server.mocker.labelPost( + 'not-a-real-label', + await server.mocker.createPost('unknown-posts', 'unknown post'), + ) + await server.mocker.labelPost( + 'not-a-real-label', + await server.mocker.createQuotePost( + 'unknown-posts', + 'unknown quote post', + anchorPost, + ), + ) + await server.mocker.labelPost( + 'not-a-real-label', + await server.mocker.createReply( + 'unknown-posts', + 'unknown reply', + anchorPost, + ), + ) + await server.mocker.users.alice.agent.mute('muted-account.test') await server.mocker.createPost('muted-account', 'muted post') await server.mocker.createQuotePost(