Skip to content

Commit

Permalink
changes unnecssary "eql" invocation to "equal" invocation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kezike committed Apr 23, 2024
1 parent 0d9da47 commit b25163c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('api', () => {
.send(getUnsignedVC())

expect(response.header['content-type']).to.have.string('json')
expect(response.status).to.eql(200)
expect(response.status).to.equal(200)
expect(response.body)
})

Expand Down Expand Up @@ -132,11 +132,11 @@ describe('api', () => {
.send(sentCred)

expect(response.header['content-type']).to.have.string('json')
expect(response.status).to.eql(200)
expect(response.status).to.equal(200)

const returnedCred = JSON.parse(JSON.stringify(response.body))
// this proof value comes from the nock:
expect(returnedCred.proof.proofValue).to.eql('z5QQ12zr5JvEsKvbnEN2EYZ6punR6Pa5wMJzywGJ2dCh6SSA5oQb9hBiGADsNTbs57bopArwdBHE9kEVemMxcu1Fq')
expect(returnedCred.proof.proofValue).to.equal('z5QQ12zr5JvEsKvbnEN2EYZ6punR6Pa5wMJzywGJ2dCh6SSA5oQb9hBiGADsNTbs57bopArwdBHE9kEVemMxcu1Fq')
})
})

Expand Down Expand Up @@ -214,7 +214,7 @@ describe('api', () => {
.send(statusUpdateBodyWithUnknownId)

expect(response.header['content-type']).to.have.string('json')
expect(response.status).to.eql(404)
expect(response.status).to.equal(404)
})

it('calls status manager for protected tenant', async () => {
Expand All @@ -225,7 +225,7 @@ describe('api', () => {
.send(statusUpdateBody)

expect(response.header['content-type']).to.have.string('json')
expect(response.status).to.eql(200)
expect(response.status).to.equal(200)
})
})
})

0 comments on commit b25163c

Please sign in to comment.