File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,9 +225,7 @@ paths:
225225 ' 401 ' :
226226 content :
227227 application/feed+json :
228- example :
229- title : Error
230- version : https://jsonfeed.org/version/1.1
228+ example : ' {"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
231229 schema :
232230 type : string
233231 application/xml :
@@ -240,9 +238,7 @@ paths:
240238 ' 403 ' :
241239 content :
242240 application/feed+json :
243- example :
244- title : Error
245- version : https://jsonfeed.org/version/1.1
241+ example : ' {"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
246242 schema :
247243 type : string
248244 application/xml :
@@ -256,9 +252,7 @@ paths:
256252 ' 500 ' :
257253 content :
258254 application/feed+json :
259- example :
260- title : Error
261- version : https://jsonfeed.org/version/1.1
255+ example : ' {"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
262256 schema :
263257 type : string
264258 application/xml :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ describe('ResultDisplay', () => {
4444 expect ( screen . getByText ( / p o i n t s b y c a n p a n / i) ) . toBeInTheDocument ( ) ;
4545 expect ( screen . getByText ( 'Item Two' ) ) . toBeInTheDocument ( ) ;
4646 } ) ;
47- expect ( window . fetch ) . toHaveBeenCalledWith ( 'https://example.com/feed.json ' , {
47+ expect ( window . fetch ) . toHaveBeenCalledWith ( 'https://example.com/feed.xml ' , {
4848 headers : { Accept : 'application/feed+json' } ,
4949 } ) ;
5050 } ) ;
Original file line number Diff line number Diff line change 109109 XML
110110 } ,
111111 'application/feed+json' => {
112- 'example' => {
113- 'version' => 'https://jsonfeed.org/version/1.1' ,
114- 'title' => 'Error'
115- }
112+ 'example' => '{"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
116113 }
117114 }
118115
You can’t perform that action at this time.
0 commit comments