From 7672728f45c1bb2e577706afefc4e2333770017b Mon Sep 17 00:00:00 2001 From: ESTELLON Bertrand <bertrand.estellon@univ-amu.fr> Date: Wed, 4 Dec 2024 14:23:53 +0000 Subject: [PATCH] Correction des tests du TD45 --- TD45/all.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TD45/all.test.js b/TD45/all.test.js index 13cef0b..42cd0f6 100644 --- a/TD45/all.test.js +++ b/TD45/all.test.js @@ -99,8 +99,8 @@ if (progression >= 28 && progression < 30) { page.on('console', async consoleObj => { const args = consoleObj.args(); const arg0 = args[0]; + if (arg0 == undefined) return; const json = await arg0.jsonValue(); - if (json == undefined) return; consoleLogs.push(json) }); await page.goto(`http://localhost:${fastify.server.address().port}`); @@ -126,8 +126,8 @@ if (progression == 29) { page.on('console', async consoleObj => { const args = consoleObj.args(); const arg0 = args[0]; + if (arg0 == undefined) return; const json = await arg0.jsonValue(); - if (json == undefined) return; consoleLogs.push(json) }); await page.goto(`http://localhost:${fastify.server.address().port}`); -- GitLab