Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/host/host_test.go')
-rw-r--r--internal/host/host_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/host/host_test.go b/internal/host/host_test.go
index 8395d3fc..7168eb1b 100644
--- a/internal/host/host_test.go
+++ b/internal/host/host_test.go
@@ -4,15 +4,15 @@ import (
"net/http/httptest"
"testing"
- "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
)
func TestFromString(t *testing.T) {
- assert.Equal(t, "example.com", FromString("example.com"))
- assert.Equal(t, "example.com", FromString("eXAmpLe.com"))
- assert.Equal(t, "example.com", FromString("example.com:8080"))
+ require.Equal(t, "example.com", FromString("example.com"))
+ require.Equal(t, "example.com", FromString("eXAmpLe.com"))
+ require.Equal(t, "example.com", FromString("example.com:8080"))
}
func TestFromRequest(t *testing.T) {
- assert.Equal(t, "example.com", FromRequest(httptest.NewRequest("GET", "example.com:8080/123", nil)))
+ require.Equal(t, "example.com", FromRequest(httptest.NewRequest("GET", "example.com:8080/123", nil)))
}