Skip to content

Commit

Permalink
fix bsky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Oct 30, 2023
1 parent c67ae26 commit e21f408
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/bsky/tests/auto-moderator/takedowns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ describe('takedowner', () => {
const recordPds = await network.pds.ctx.db.db
.selectFrom('record')
.where('uri', '=', post.ref.uriStr)
.select('takedownId')
.select('takedownRef')
.executeTakeFirst()
expect(recordPds?.takedownId).toEqual(modAction.id.toString())
expect(recordPds?.takedownRef).toEqual(modAction.id.toString())

expect(testInvalidator.invalidated.length).toBe(1)
expect(testInvalidator.invalidated[0].subject).toBe(
Expand Down Expand Up @@ -138,9 +138,9 @@ describe('takedowner', () => {
const recordPds = await network.pds.ctx.db.db
.selectFrom('record')
.where('uri', '=', res.data.uri)
.select('takedownId')
.select('takedownRef')
.executeTakeFirst()
expect(recordPds?.takedownId).toEqual(modAction.id.toString())
expect(recordPds?.takedownRef).toEqual(modAction.id.toString())

expect(testInvalidator.invalidated.length).toBe(2)
expect(testInvalidator.invalidated[1].subject).toBe(
Expand Down

0 comments on commit e21f408

Please sign in to comment.