forked from baron/baron-sso
린트 적용
This commit is contained in:
@@ -32,7 +32,7 @@ func (m *MockKratosAdminForUser) ListIdentities(ctx context.Context) ([]service.
|
||||
return args.Get(0).([]service.KratosIdentity), args.Error(1)
|
||||
}
|
||||
|
||||
// Note: In reality, KratosAdminService might not be an interface.
|
||||
// Note: In reality, KratosAdminService might not be an interface.
|
||||
// If it's a struct, we'd need to mock the underlying client or use an interface.
|
||||
// For the sake of this test, let's assume we can mock it or use a wrapper.
|
||||
|
||||
@@ -56,8 +56,8 @@ func TestUserHandler_CreateUser_InvalidEmail(t *testing.T) {
|
||||
func TestUserHandler_GetUser_Forbidden(t *testing.T) {
|
||||
app := fiber.New()
|
||||
mockKratos := new(MockKratosAdminForUser)
|
||||
// We need a way to inject mockKratos into UserHandler.
|
||||
// Since UserHandler uses *service.KratosAdminService (struct),
|
||||
// We need a way to inject mockKratos into UserHandler.
|
||||
// Since UserHandler uses *service.KratosAdminService (struct),
|
||||
// we'd typically use an interface here.
|
||||
// For now, let's just focus on the logic validation if possible.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user