mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-14 23:40:16 +00:00
tests: use new inputs in tests
This commit is contained in:
@@ -69,7 +69,10 @@ func TestResourcesController(t *testing.T) {
|
||||
group := router.Group("/")
|
||||
gin.SetMode(gin.TestMode)
|
||||
|
||||
controller.NewResourcesController(cfg, group)
|
||||
controller.NewResourcesController(controller.ResourcesControllerInput{
|
||||
RouterGroup: group,
|
||||
Config: &cfg,
|
||||
})
|
||||
|
||||
recorder := httptest.NewRecorder()
|
||||
test.run(t, router, recorder)
|
||||
|
||||
Reference in New Issue
Block a user