@@ -250,18 +250,18 @@ func Test_Domain_OpenAPI_Helpers(t *testing.T) {
250250 t .Parallel ()
251251 app := New ()
252252 domain := app .Domain ("api.example.com" )
253- domain .Get ("/users" , testEmptyHandler ).Summary ("sum " )
253+ domain .Get ("/users" , testEmptyHandler ).Summary ("Get all users " )
254254 route := app .stack [app .methodInt (MethodGet )][0 ]
255- require .Equal (t , "sum " , route .Summary )
255+ require .Equal (t , "Get all users " , route .Summary )
256256 })
257257
258258 t .Run ("Description" , func (t * testing.T ) {
259259 t .Parallel ()
260260 app := New ()
261261 domain := app .Domain ("api.example.com" )
262- domain .Get ("/users" , testEmptyHandler ).Description ("desc " )
262+ domain .Get ("/users" , testEmptyHandler ).Description ("Retrieves all users " )
263263 route := app .stack [app .methodInt (MethodGet )][0 ]
264- require .Equal (t , "desc " , route .Description )
264+ require .Equal (t , "Retrieves all users " , route .Description )
265265 })
266266
267267 t .Run ("Consumes" , func (t * testing.T ) {
@@ -270,7 +270,7 @@ func Test_Domain_OpenAPI_Helpers(t *testing.T) {
270270 domain := app .Domain ("api.example.com" )
271271 domain .Get ("/users" , testEmptyHandler ).Consumes (MIMEApplicationJSON )
272272 route := app .stack [app .methodInt (MethodGet )][0 ]
273- //nolint:testifylint // MIMEApplicationJSON is a plain string, JSONEq not required
273+ //nolint:testifylint // MIMEApplicationJSON is a MIME type string, not JSON payload
274274 require .Equal (t , MIMEApplicationJSON , route .Consumes )
275275 })
276276
@@ -359,9 +359,9 @@ func Test_Domain_OpenAPI_Helpers(t *testing.T) {
359359 t .Parallel ()
360360 app := New ()
361361 domain := app .Domain ("api.example.com" )
362- domain .Get ("/users" , testEmptyHandler ).Tags ("foo " , "bar " )
362+ domain .Get ("/users" , testEmptyHandler ).Tags ("users " , "api " )
363363 route := app .stack [app .methodInt (MethodGet )][0 ]
364- require .Equal (t , []string {"foo " , "bar " }, route .Tags )
364+ require .Equal (t , []string {"users " , "api " }, route .Tags )
365365 })
366366
367367 t .Run ("Deprecated" , func (t * testing.T ) {
0 commit comments