Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Dec 21, 2023
1 parent 2b33089 commit 4ad7e24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ozone/tests/moderation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ describe('moderation', () => {
uri: post.uriStr,
cid: post.cidStr,
}
const modService = ctx.services.moderation(ctx.db)
const modService = ctx.modService(ctx.db)
await modService.formatAndCreateLabels(
ctx.cfg.labelerDid,
post.uriStr,
Expand Down Expand Up @@ -473,7 +473,7 @@ describe('moderation', () => {
it('no-ops when negating an already-negated label and reverses.', async () => {
const { ctx } = ozone
const post = sc.posts[sc.dids.bob][0].ref
const modService = ctx.services.moderation(ctx.db)
const modService = ctx.modService(ctx.db)
await emitLabelEvent({
negateLabelVals: ['bears'],
createLabelVals: [],
Expand Down Expand Up @@ -556,7 +556,7 @@ describe('moderation', () => {

it('creates and negates labels on a repo and reverses.', async () => {
const { ctx } = ozone
const modService = ctx.services.moderation(ctx.db)
const modService = ctx.modService(ctx.db)
await modService.formatAndCreateLabels(
ctx.cfg.labelerDid,
sc.dids.bob,
Expand Down Expand Up @@ -758,7 +758,7 @@ describe('moderation', () => {
// In the actual app, this will be instantiated and run on server startup
const reverser = new EventReverser(
network.ozone.ctx.db,
network.ozone.ctx.services,
network.ozone.ctx.modService,
)
await reverser.findAndRevertDueActions()
await ozone.processAll()
Expand Down

0 comments on commit 4ad7e24

Please sign in to comment.