Add mock data to test unknown labels (#578)
parent
7f88845c9b
commit
0f68e6a6ff
|
@ -81,6 +81,9 @@ async function main() {
|
||||||
'nudity-account',
|
'nudity-account',
|
||||||
'nudity-profile',
|
'nudity-profile',
|
||||||
'nudity-posts',
|
'nudity-posts',
|
||||||
|
'unknown-account',
|
||||||
|
'unknown-profile',
|
||||||
|
'unknown-posts',
|
||||||
'muted-account',
|
'muted-account',
|
||||||
]) {
|
]) {
|
||||||
await server.mocker.createUser(user)
|
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.users.alice.agent.mute('muted-account.test')
|
||||||
await server.mocker.createPost('muted-account', 'muted post')
|
await server.mocker.createPost('muted-account', 'muted post')
|
||||||
await server.mocker.createQuotePost(
|
await server.mocker.createQuotePost(
|
||||||
|
|
Loading…
Reference in New Issue