Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
66680a30
Commit
66680a30
authored
Apr 22, 2026
by
IanShaw027
Browse files
fix(test): update wechat bind start path assertion
parent
ad460096
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/user_handler_test.go
View file @
66680a30
...
@@ -253,7 +253,7 @@ func TestUserHandlerGetProfileReturnsIdentitySummaries(t *testing.T) {
...
@@ -253,7 +253,7 @@ func TestUserHandlerGetProfileReturnsIdentitySummaries(t *testing.T) {
require
.
Equal
(
t
,
"https://issuer.example.com"
,
resp
.
Data
.
Identities
.
OIDC
.
ProviderKey
)
require
.
Equal
(
t
,
"https://issuer.example.com"
,
resp
.
Data
.
Identities
.
OIDC
.
ProviderKey
)
require
.
False
(
t
,
resp
.
Data
.
Identities
.
WeChat
.
Bound
)
require
.
False
(
t
,
resp
.
Data
.
Identities
.
WeChat
.
Bound
)
require
.
True
(
t
,
resp
.
Data
.
Identities
.
WeChat
.
CanBind
)
require
.
True
(
t
,
resp
.
Data
.
Identities
.
WeChat
.
CanBind
)
require
.
Contains
(
t
,
resp
.
Data
.
Identities
.
WeChat
.
BindStartPath
,
"/api/v1/auth/oauth/wechat/start"
)
require
.
Contains
(
t
,
resp
.
Data
.
Identities
.
WeChat
.
BindStartPath
,
"/api/v1/auth/oauth/wechat/
bind/
start"
)
}
}
func
TestUserHandlerGetProfileReturnsLegacyCompatibilityFields
(
t
*
testing
.
T
)
{
func
TestUserHandlerGetProfileReturnsLegacyCompatibilityFields
(
t
*
testing
.
T
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment