From c033a168614949c011d968e68eb038db5412a5bb Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Thu, 17 Sep 2026 11:16:25 -0700 Subject: [PATCH] Accept URL objects in the withdrawal transport test --- system/tests/oskiewar-generation.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/tests/oskiewar-generation.test.mjs b/system/tests/oskiewar-generation.test.mjs index 646d7aff5a..b5a1f04473 100644 --- a/system/tests/oskiewar-generation.test.mjs +++ b/system/tests/oskiewar-generation.test.mjs @@ -107,7 +107,7 @@ test('withdrawal uses the signed-in subject and works without a generation token Object.assign(process.env,{REGARDE_GATEWAY_URL:'https://gate.invalid/v0/gateway',REGARDE_SUBJECT_SALT:'fixture',REGARDE_GATEWAY_TOKEN:'deployer'}); delete process.env.OPENAI_API_KEY; let sent; - globalThis.fetch=async(url,options)=>{assert.equal(url,'https://gate.invalid/v0/withdraw');sent=JSON.parse(options.body);return Response.json({outcome:'withdrawn'});}; + globalThis.fetch=async(url,options)=>{assert.equal(String(url),'https://gate.invalid/v0/withdraw');sent=JSON.parse(options.body);return Response.json({outcome:'withdrawn'});}; try { const result=await handler({httpMethod:'POST',headers:{authorization:'Bearer fixture'},body:JSON.stringify({action:'withdraw',subject:'another-person'})}); assert.equal(result.statusCode,200); -- 2.51.2