clndr/api/test/middleware/basicauth_test.go

19 lines
298 B
Go

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) {
}