1
0
mirror of https://git.cloudron.io/cloudron/freshrss-app synced 2026-04-22 10:53:57 +00:00

test: fix @cloudron/superagent API compatibility

Replace .statusCode with .status, remove .agent() and .end()
usage to match @cloudron/superagent API.

Made-with: Cursor
This commit is contained in:
Girish Ramakrishnan
2026-04-15 16:54:55 +02:00
parent dc29214e71
commit ca55bcf330

View File

@@ -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
}