gallery/api/test/middleware/basicauth_test.go

19 lines
298 B
Go
Raw Permalink Normal View History

2022-12-18 00:42:21 +00:00
package middleware_test
import (
"magmise/middleware"
"testing"
)
func TestCheckPasswordHash(t *testing.T) {
password := "password"
hash, _ := middleware.HashPassword(password)
if middleware.CheckPasswordHash(password, hash) == false {
t.Fail()
}
}
func TestBasicAuth(t *testing.T) {
}