Skip to content

Commit

Permalink
fix(adm): cleanup open handle in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Nov 30, 2024
1 parent 5652010 commit dddbc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adm/handlers/moderation/__tests__/blockUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ beforeEach(() => loadFixtures(fixtures));
afterEach(() => unloadFixtures(fixtures));

it('fails if userId is not valid', async () => {
expect(
await expect(
blockUser({ userId: 'not-exist', blockedReason: 'announcement url' })
).rejects.toMatchInlineSnapshot(
`[HTTPError: User with ID=not-exist does not exist]`
Expand Down

0 comments on commit dddbc95

Please sign in to comment.