aboutsummaryrefslogtreecommitdiff
path: root/packages/astro-rss/test/rss.test.js
diff options
context:
space:
mode:
authorGravatar Ming-jun Lu <40516784+mingjunlu@users.noreply.github.com> 2024-05-15 22:33:50 +0800
committerGravatar GitHub <noreply@github.com> 2024-05-15 15:33:50 +0100
commit841df1f1b192f39849509cda49b7243940cc30f9 (patch)
treeb8614c678f275765ebb68dc016a1f896cb7f0efe /packages/astro-rss/test/rss.test.js
parent530ef95a20dee8027757aa1677d8af5f86cf9912 (diff)
downloadastro-841df1f1b192f39849509cda49b7243940cc30f9.tar.gz
astro-841df1f1b192f39849509cda49b7243940cc30f9.tar.zst
astro-841df1f1b192f39849509cda49b7243940cc30f9.zip
fix(rss): fix an issue where trailing slash is not removed even if `trailingSlash` is set to `false` (#11050)
* refactor(createCanonicalURL): return string instead of URL object * fix(rss): fix an issue where trailing slash is not removed even if `trailingSlash` is set to `false` * test(rss): update test case related to trailing slash * chore: add changeset
Diffstat (limited to 'packages/astro-rss/test/rss.test.js')
-rw-r--r--packages/astro-rss/test/rss.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro-rss/test/rss.test.js b/packages/astro-rss/test/rss.test.js
index 764cc1301..547b75b4e 100644
--- a/packages/astro-rss/test/rss.test.js
+++ b/packages/astro-rss/test/rss.test.js
@@ -176,7 +176,7 @@ describe('getRssString', () => {
trailingSlash: false,
});
- assert.ok(str.includes('https://example.com/<'));
+ assert.ok(str.includes('https://example.com<'));
assert.ok(str.includes('https://example.com/php<'));
});