Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenakh97 committed Jul 2, 2024
1 parent 6cba7a4 commit e8acd45
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 @@ -31,18 +31,17 @@ 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 expectedCacheControl = 'public, max-age=60'
console.log(await req.json())
assert.equal(req.headers.get('cache-control'), expectedCacheControl)
assert.equal(req.status, 409)
assert.equal(req.headers.get('content-length'), '0')
})
void it('should return statusCode 404 and cache max-age=60 when the SIM is not existing', async () => {
const req = await fetchData(iccidNotExisting)
const expectedCacheControl = 'public, max-age=60'
console.log(await req.text())
assert.equal(req.headers.get('cache-control'), expectedCacheControl)
assert.equal(req.status, 404)
assert.equal(req.headers.get('content-length'), '0')
assert.equal(await req.text, '')
})
void it('should return statusCode 200, cache max-age=300 and correct body if the data is in cache', async () => {
const req = await fetchData(iccidNew)
Expand Down

0 comments on commit e8acd45

Please sign in to comment.