Skip to content

Commit

Permalink
fix moderation status tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Mar 7, 2024
1 parent 0ab7500 commit e46397d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/ozone/tests/moderation-statuses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('moderation-statuses', () => {
cid: sc.posts[sc.dids.alice][0].ref.cidStr,
}
const getBobsAccountStatus = async () => {
const { data } = await queryModerationStatuses({
const data = await modClient.queryModerationStatuses({
subject: bobsAccount.did,
})

Expand All @@ -170,7 +170,7 @@ describe('moderation-statuses', () => {
const bobsAccountStatusBeforeTag = await getBobsAccountStatus()

await Promise.all([
emitModerationEvent({
modClient.emitModerationEvent({
subject: bobsAccount,
event: {
$type: 'com.atproto.admin.defs#modEventTag',
Expand All @@ -180,7 +180,7 @@ describe('moderation-statuses', () => {
},
createdBy: sc.dids.alice,
}),
emitModerationEvent({
modClient.emitModerationEvent({
subject: bobsAccount,
event: {
$type: 'com.atproto.admin.defs#modEventComment',
Expand All @@ -197,7 +197,7 @@ describe('moderation-statuses', () => {

// Since alice's post didn't have a reviewState it is set to reviewNone on first non-impactful event
const getAlicesPostStatus = async () => {
const { data } = await queryModerationStatuses({
const data = await modClient.queryModerationStatuses({
subject: alicesPost.uri,
})

Expand All @@ -207,7 +207,7 @@ describe('moderation-statuses', () => {
const alicesPostStatusBeforeTag = await getAlicesPostStatus()
expect(alicesPostStatusBeforeTag).toBeUndefined()

await emitModerationEvent({
await modClient.emitModerationEvent({
subject: alicesPost,
event: {
$type: 'com.atproto.admin.defs#modEventComment',
Expand All @@ -218,7 +218,7 @@ describe('moderation-statuses', () => {
const alicesPostStatusAfterTag = await getAlicesPostStatus()
expect(alicesPostStatusAfterTag.reviewState).toEqual(REVIEWNONE)

await emitModerationEvent({
await modClient.emitModerationEvent({
subject: alicesPost,
event: {
$type: 'com.atproto.admin.defs#modEventReport',
Expand Down

0 comments on commit e46397d

Please sign in to comment.