fix(RSS Read Node): Fix issue where some feeds fail to load (#16001)

This commit is contained in:
Jon
2025-06-09 11:10:18 +01:00
committed by GitHub
parent 4426249950
commit 18c355d85f
3 changed files with 85 additions and 13 deletions

View File

@@ -7,6 +7,9 @@ const feed = `<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.o
describe('Test RSS Feed Trigger Node', () => {
beforeAll(() => {
nock('https://lorem-rss.herokuapp.com').get('/feed?length=3').reply(200, feed);
nock('https://fake-rss-feed.com')
.get('/feed')
.reply(200, feed, { 'Content-Type': 'application/xml; charset=utf-8' });
});
new NodeTestHarness().setupTests();