mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2026-04-24 03:34:59 +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`)
|
const response = await superagent.get(`${baseUrl()}/ext.php?f=xExtension-StickyFeeds/static/script.js&t=js`)
|
||||||
.buffer(true)
|
.buffer(true)
|
||||||
.ok(() => 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
|
assert.ok(response.text.includes('sticky_feeds')); // relies on the buffer flag above
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user