update tests

This commit is contained in:
Federico Builes
2023-10-09 11:23:53 +02:00
parent ad34390f92
commit 8dc52cdbed
+2 -1
View File
@@ -24,6 +24,7 @@ test('it properly catches RequestError type', async () => {
headRef: 'refs/heads/master' headRef: 'refs/heads/master'
}) })
} catch (error) { } catch (error) {
expect(error).toBeInstanceOf(RequestError) const err = error as RequestError
expect(err.status).toBe(401)
} }
}) })