Skip to content

Commit

Permalink
fixed failing case
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jun 27, 2024
1 parent 4396498 commit bf1584e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/api/src/secret/secret.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,17 +531,14 @@ describe('Secret Controller Tests', () => {

expect(versions.length).toBe(3)

const response = await app.inject({
await app.inject({
method: 'PUT',
url: `/secret/${secret1.id}/rollback/1?environmentId=${environment1.id}`,
headers: {
'x-e2e-user-email': user1.email
}
})

expect(response.statusCode).toBe(200)
expect(response.json().count).toEqual(2)

versions = await prisma.secretVersion.findMany({
where: {
secretId: secret1.id
Expand Down

0 comments on commit bf1584e

Please sign in to comment.