chore: update unit tests

Signed-off-by: Frank Kong <frkong@redhat.com>
This commit is contained in:
Frank Kong
2024-05-02 12:07:30 -04:00
parent a2a6a826d8
commit e5b903599f
@@ -895,6 +895,11 @@ data: {"id":1,"taskId":"a-random-id","type":"completion","createdAt":"","body":{
it('filters steps that the user is not authorized to see', async () => {
jest
.spyOn(permissionApi, 'authorizeConditional')
.mockImplementationOnce(async () => [
{
result: AuthorizeResult.ALLOW,
},
])
.mockImplementation(async () => [
{
result: AuthorizeResult.ALLOW,