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 e8acd45 commit f8e4e1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e-tests/e2eTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ void describe('e2e-tests', () => {
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'
const text = 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, '')
assert.equal(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 f8e4e1a

Please sign in to comment.