tests
This commit is contained in:
@@ -48,7 +48,7 @@ func TestGetAllCategories_Success(t *testing.T) {
|
||||
service := &services.LicenceService{Repo: mockRepo}
|
||||
|
||||
// Create controller with service
|
||||
lc := &LicenceController{Service: *service}
|
||||
lc := &LicenceController{Service: service}
|
||||
|
||||
// Setup router and request
|
||||
router := gin.Default()
|
||||
@@ -76,7 +76,7 @@ func TestGetAllCategories_Error(t *testing.T) {
|
||||
service := &services.LicenceService{Repo: mockRepo}
|
||||
|
||||
// Create controller with service
|
||||
lc := &LicenceController{Service: *service}
|
||||
lc := &LicenceController{Service: service}
|
||||
|
||||
// Setup router and request
|
||||
router := gin.Default()
|
||||
|
||||
Reference in New Issue
Block a user