@@ -13,7 +13,7 @@ describe('markdown serving based on user agent', () => {
1313 } ) ;
1414
1515 expect ( response . status ) . toBe ( 200 ) ;
16- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
16+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
1717 } ) ;
1818
1919 it ( 'should serve markdown to ClaudeBot (ua-match AI agent)' , async ( ) => {
@@ -24,7 +24,7 @@ describe('markdown serving based on user agent', () => {
2424 } ) ;
2525
2626 expect ( response . status ) . toBe ( 200 ) ;
27- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
27+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
2828 } ) ;
2929
3030 it ( 'should NOT serve markdown to Slackbot (heuristic detection only)' , async ( ) => {
@@ -92,7 +92,7 @@ describe('markdown pages', () => {
9292 const text = await response . text ( ) ;
9393
9494 expect ( response . status ) . toBe ( 200 ) ;
95- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
95+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
9696 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex' ) ;
9797 expect ( text ) . toContain ( '# Text page' ) ;
9898 } ) ;
@@ -111,7 +111,7 @@ describe('markdown pages', () => {
111111 const text = await response . text ( ) ;
112112
113113 expect ( response . status ) . toBe ( 200 ) ;
114- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
114+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
115115 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex' ) ;
116116 expect ( text ) . toContain ( '# Text page' ) ;
117117 } ) ;
@@ -123,7 +123,7 @@ describe('markdown pages', () => {
123123 const text = await response . text ( ) ;
124124
125125 expect ( response . status ) . toBe ( 200 ) ;
126- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
126+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
127127 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex, nofollow' ) ;
128128 expect ( text ) . toContain ( '# Page Not Found' ) ;
129129 } ) ;
@@ -137,7 +137,7 @@ describe('markdown pages', () => {
137137 const text = await response . text ( ) ;
138138
139139 expect ( response . status ) . toBe ( 200 ) ;
140- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
140+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
141141 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex' ) ;
142142 expect ( text ) . toContain ( 'gitbook.gitbook.io/test-gitbook-open/text-page.md' ) ;
143143 } ) ;
@@ -179,7 +179,7 @@ describe('Accept header content negotiation', () => {
179179 } ) ;
180180
181181 expect ( response . status ) . toBe ( 200 ) ;
182- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
182+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
183183 } ) ;
184184
185185 it ( 'should serve markdown when text/markdown has a higher q-value (Accept: text/html;q=0.9, text/markdown)' , async ( ) => {
@@ -188,7 +188,7 @@ describe('Accept header content negotiation', () => {
188188 } ) ;
189189
190190 expect ( response . status ) . toBe ( 200 ) ;
191- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
191+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
192192 } ) ;
193193
194194 it ( 'should NOT serve markdown when text/markdown has a lower q-value (Accept: text/html, text/markdown;q=0.9)' , async ( ) => {
@@ -206,7 +206,7 @@ describe('Accept header content negotiation', () => {
206206 } ) ;
207207
208208 expect ( response . status ) . toBe ( 200 ) ;
209- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
209+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
210210 } ) ;
211211} ) ;
212212
@@ -225,7 +225,7 @@ describe('markdown ask responses', () => {
225225 const text = await response . text ( ) ;
226226
227227 expect ( response . status ) . toBe ( 200 ) ;
228- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
228+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
229229 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex' ) ;
230230 expect ( text ) . toContain ( ASK_QUESTION_HEADING ) ;
231231 } ,
@@ -248,7 +248,7 @@ describe('markdown ask responses', () => {
248248 const text = await response . text ( ) ;
249249
250250 expect ( response . status ) . toBe ( 200 ) ;
251- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
251+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
252252 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex' ) ;
253253 expect ( text ) . toContain ( ASK_QUESTION_HEADING ) ;
254254 } ,
@@ -269,7 +269,7 @@ describe('markdown robots directives', () => {
269269 } ) ;
270270
271271 expect ( response . status ) . toBe ( 200 ) ;
272- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
272+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
273273 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'index, follow' ) ;
274274 } ) ;
275275
@@ -279,7 +279,7 @@ describe('markdown robots directives', () => {
279279 } ) ;
280280
281281 expect ( response . status ) . toBe ( 200 ) ;
282- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
282+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
283283 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'index, follow' ) ;
284284 } ) ;
285285
@@ -289,7 +289,7 @@ describe('markdown robots directives', () => {
289289 } ) ;
290290
291291 expect ( response . status ) . toBe ( 200 ) ;
292- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
292+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
293293 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex' ) ;
294294 } ) ;
295295
@@ -300,7 +300,7 @@ describe('markdown robots directives', () => {
300300 ) ;
301301
302302 expect ( response . status ) . toBe ( 200 ) ;
303- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
303+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
304304 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex, nofollow' ) ;
305305 } ) ;
306306
@@ -313,7 +313,7 @@ describe('markdown robots directives', () => {
313313 ) ;
314314
315315 expect ( response . status ) . toBe ( 200 ) ;
316- expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/markdown ' ) ;
316+ expect ( response . headers . get ( 'content-type' ) ) . toContain ( 'text/plain ' ) ;
317317 expect ( response . headers . get ( 'x-robots-tag' ) ) . toBe ( 'noindex, nofollow' ) ;
318318 } ) ;
319319} ) ;
0 commit comments