@@ -43,13 +43,6 @@ describe("Cloudflare Docs", () => {
4343 expect ( response . headers . get ( "Location" ) ) . toBe ( "/products/" ) ;
4444 } ) ;
4545
46- it ( "redirects /changelog/index.xml to /release-notes/index.xml" , async ( ) => {
47- const request = new Request ( "http://fakehost/changelog/index.xml" ) ;
48- const response = await SELF . fetch ( request , { redirect : "manual" } ) ;
49- expect ( response . status ) . toBe ( 301 ) ;
50- expect ( response . headers . get ( "Location" ) ) . toBe ( "/release-notes/index.xml" ) ;
51- } ) ;
52-
5346 it ( "redirects /changelog-next/ to /changelog/" , async ( ) => {
5447 const request = new Request ( "http://fakehost/changelog-next/" ) ;
5548 const response = await SELF . fetch ( request , { redirect : "manual" } ) ;
@@ -166,27 +159,6 @@ describe("Cloudflare Docs", () => {
166159 expect ( item . pubDate ) . toBe ( "Mon, 03 Mar 2025 06:00:00 GMT" ) ;
167160 } ) ;
168161
169- it ( "legacy global" , async ( ) => {
170- const request = new Request ( "http://fakehost/release-notes/index.xml" ) ;
171- const response = await SELF . fetch ( request ) ;
172-
173- expect ( response . status ) . toBe ( 200 ) ;
174-
175- const xml = await response . text ( ) ;
176- const parsed = parser . parse ( xml ) ;
177- const { channel } = parsed . rss ;
178-
179- expect ( channel . title ) . toBe ( "Cloudflare release notes" ) ;
180-
181- const item = channel . item . find (
182- ( item : any ) => item . title === "WAF - 2025-02-24" ,
183- ) ;
184-
185- expect ( item ) . toBeDefined ( ) ;
186- expect ( item . product ) . toBe ( "WAF" ) ;
187- expect ( item . pubDate ) . toBe ( "Mon, 24 Feb 2025 00:00:00 GMT" ) ;
188- } ) ;
189-
190162 it ( "legacy product-specific" , async ( ) => {
191163 const request = new Request ( "http://fakehost/waf/change-log/index.xml" ) ;
192164 const response = await SELF . fetch ( request ) ;
0 commit comments