From 6e29723b5237d83772ce7bc4f867cd9da77edf60 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 028dace..da34fda 100755 --- a/test/test.js +++ b/test/test.js @@ -87,7 +87,7 @@ describe('Application life cycle test', function () { const avatarSrc = await browser.findElement(By.xpath('//div[@id="profile-avatar"]/a/img')).getAttribute('src'); const response = await superagent.get(avatarSrc); - assert.strictEqual(response.statusCode, 200); + assert.strictEqual(response.status, 200); } async function login(username, password) {