H-47: unblock connector sandbox setup (#11)
Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestPlatformAppIDSupportsBothRoutes(t *testing.T) {
|
||||
for _, params := range []gin.Param{
|
||||
{Key: "id", Value: "7"},
|
||||
{Key: "platform_app_id", Value: "7"},
|
||||
} {
|
||||
ctx, _ := gin.CreateTestContext(nil)
|
||||
ctx.Params = []gin.Param{params}
|
||||
id, err := platformAppID(ctx)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, uint(7), id)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user