From e8acd45be584ce4f53731127b791598a93f9b1aa Mon Sep 17 00:00:00 2001 From: Lena Haraldseid Date: Tue, 2 Jul 2024 07:53:31 +0200 Subject: [PATCH] wip --- e2e-tests/e2eTest.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e-tests/e2eTest.spec.ts b/e2e-tests/e2eTest.spec.ts index 477bec8..54c5291 100644 --- a/e2e-tests/e2eTest.spec.ts +++ b/e2e-tests/e2eTest.spec.ts @@ -31,7 +31,6 @@ 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') @@ -39,10 +38,10 @@ 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' - 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)