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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user