make sure to await rejected promise expectations
This commit is contained in:
parent
b45c9aab6b
commit
24a5414b64
packages
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user