Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Dec 16, 2023
1 parent 135633d commit b14d829
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipe/emailpassword/accountlinkingRecipeImplementation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1948,6 +1948,26 @@ func TestListUsersByAccountInfoTakesIntoAccountTenantId(t *testing.T) {
assert.Equal(t, users[0].ID, tpuser.OK.User.ID)
}

func TestThatEmailProxyNotSetIfEmailVerificationNotInit(t *testing.T) {
telemetry := false
supertokens.Init(supertokens.TypeInput{
Supertokens: &supertokens.ConnectionInfo{
ConnectionURI: "http://localhost:8080",
},
AppInfo: supertokens.AppInfo{
AppName: "Testing",
Origin: "http://localhost:3000",
APIDomain: "http://localhost:3001",
},
Telemetry: &telemetry,
RecipeList: []supertokens.Recipe{
Init(nil),
},
})

assert.Nil(t, supertokens.InternalUseEmailVerificationRecipeProxyInstance)
}

// TODO: remove this function
func convertEpUserToSuperTokensUser(epuser epmodels.User) supertokens.User {
rUId, err := supertokens.NewRecipeUserID(epuser.ID)
Expand Down

0 comments on commit b14d829

Please sign in to comment.