fix: arangodb get one queries

This commit is contained in:
Lakhan Samani
2021-12-20 17:33:11 +05:30
parent 1398762e1d
commit bedc3d0b50
17 changed files with 110 additions and 73 deletions

View File

@@ -1,6 +1,10 @@
package utils
import "testing"
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetHostName(t *testing.T) {
authorizer_url := "http://test.herokuapp.com"
@@ -8,9 +12,7 @@ func TestGetHostName(t *testing.T) {
got := GetHostName(authorizer_url)
want := "test.herokuapp.com"
if got != want {
t.Errorf("GetHostName Test failed got %s, wanted %s", got, want)
}
assert.Equal(t, got, want, "hostname should be equal")
}
func TestGetDomainName(t *testing.T) {
@@ -19,7 +21,5 @@ func TestGetDomainName(t *testing.T) {
got := GetDomainName(authorizer_url)
want := "herokuapp.com"
if got != want {
t.Errorf("GetHostName Test failed got %q, wanted %q", got, want)
}
assert.Equal(t, got, want, "domain name should be equal")
}