Fix route

This commit is contained in:
ekzyis 2024-07-12 20:35:47 +02:00
parent 36ac326767
commit 3ac346df4f
1 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ func TestLnAuthSignupCallbackUserNotExists(t *testing.T) {
sc = context.Context{Db: db}
e, req, rec = test.HTTPMocks(
"GET",
fmt.Sprintf("/api/login?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "register"),
fmt.Sprintf("/api/lnauth?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "register"),
nil)
c = e.NewContext(req, rec)
@ -154,7 +154,7 @@ func TestLnAuthSignupCallbackUserExists(t *testing.T) {
sc = context.Context{Db: db}
e, req, rec = test.HTTPMocks(
"GET",
fmt.Sprintf("/api/login?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "register"),
fmt.Sprintf("/api/lnauth?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "register"),
nil)
c = e.NewContext(req, rec)
@ -233,7 +233,7 @@ func TestLnAuthLoginCallbackUserNotExists(t *testing.T) {
sc = context.Context{Db: db}
e, req, rec = test.HTTPMocks(
"GET",
fmt.Sprintf("/api/login?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "login"),
fmt.Sprintf("/api/lnauth?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "login"),
nil)
c = e.NewContext(req, rec)
@ -285,7 +285,7 @@ func TestLnAuthLoginCallbackUserExists(t *testing.T) {
sc = context.Context{Db: db}
e, req, rec = test.HTTPMocks(
"GET",
fmt.Sprintf("/api/login?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "login"),
fmt.Sprintf("/api/lnauth?tag=login&k1=%s&key=%s&sig=%s&action=%s", lnAuth.K1, key, sig, "login"),
nil)
c = e.NewContext(req, rec)