Skip to content

Commit

Permalink
Update e2e-tests/e2eTest.spec.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Tacker <m@coderbyheart.com>
  • Loading branch information
Lenakh97 and coderbyheart committed Jul 2, 2024
1 parent f1b3647 commit c6786b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e-tests/e2eTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ void describe('e2e-tests', () => {
})
void it('should return statusCode 409 and cache max-age=60 when the SIM information is not in DB', async () => {
const req = await fetchData(getRandomICCID())
const text = await req.text()
const expectedCacheControl = 'public, max-age=60'
assert.equal(req.headers.get('cache-control'), expectedCacheControl)
assert.equal(req.status, 409)
assert.equal(req.headers.get('content-length'), '0')
assert.equal(text, '')
assert.equal(await req.text(), '')
})
void it('should return statusCode 404 and cache max-age=60 when the SIM is not existing', async () => {
const req = await fetchData(iccidNotExisting)
Expand Down

0 comments on commit c6786b0

Please sign in to comment.