Add mock data to test unknown labels (#578)

zio/stable
Paul Frazee 2023-05-04 00:24:14 -05:00 committed by GitHub
parent 7f88845c9b
commit 0f68e6a6ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

View File

@ -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(