make sure to await rejected promise expectations

This commit is contained in:
Eric Bailey 2023-08-21 15:42:45 -05:00
parent b45c9aab6b
commit 24a5414b64
2 changed files with 2 additions and 2 deletions
packages
bsky/tests/views
pds/tests/views

@ -169,7 +169,7 @@ describe('pds author feed views', () => {
{ actor: alice },
{ headers: await network.serviceHeaders(carol) },
)
expect(attempt).rejects.toThrow('Profile not found')
await expect(attempt).rejects.toThrow('Profile not found')
// Cleanup
await agent.api.com.atproto.admin.reverseModerationAction(

@ -200,7 +200,7 @@ describe('pds author feed views', () => {
{ actor: alice },
{ headers: sc.getHeaders(carol) },
)
expect(attempt).rejects.toThrow('Profile not found')
await expect(attempt).rejects.toThrow('Profile not found')
// Cleanup
await reverseModerationAction(action.id)