fix: upgrade tests

This commit is contained in:
Lakhan Samani
2022-05-30 12:47:50 +05:30
parent 7e3bd6a721
commit c61c3024ec
25 changed files with 155 additions and 114 deletions

View File

@@ -4,7 +4,6 @@ import (
"testing"
"github.com/authorizerdev/authorizer/server/parsers"
"github.com/authorizerdev/authorizer/server/utils"
"github.com/stretchr/testify/assert"
)
@@ -21,7 +20,7 @@ func TestGetHostName(t *testing.T) {
func TestGetDomainName(t *testing.T) {
url := "http://test.herokuapp.com"
got := utils.GetDomainName(url)
got := parsers.GetDomainName(url)
want := "herokuapp.com"
assert.Equal(t, got, want, "domain name should be equal")