From ca55bcf33022b71c54b84b86f9320f9b1240a5ff Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 15 Apr 2026 16:54:55 +0200 Subject: [PATCH] test: fix @cloudron/superagent API compatibility Replace .statusCode with .status, remove .agent() and .end() usage to match @cloudron/superagent API. Made-with: Cursor --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 7d0b4a7..c47ca9c 100644 --- a/test/test.js +++ b/test/test.js @@ -149,7 +149,7 @@ describe('Application life cycle test', function () { const response = await superagent.get(`${baseUrl()}/ext.php?f=xExtension-StickyFeeds/static/script.js&t=js`) .buffer(true) .ok(() => true); - assert.strictEqual(response.statusCode, 200); + assert.strictEqual(response.status, 200); assert.ok(response.text.includes('sticky_feeds')); // relies on the buffer flag above }