about summary refs log tree commit diff stats
path: root/components
diff options
context:
space:
mode:
authorMarkus Wüstenberg2021-10-06 20:49:43 +0200
committerGitHub2021-10-06 20:49:43 +0200
commit4858e5d47d5bed0221a19ab46af306b8eab5935d (patch)
treedda74c86faa85e4bd82edff07ecf8a05cc7055b3 /components
parent33524d683661bf73fd224a76ec62fb88b2b3c767 (diff)
downloadgomponents-4858e5d47d5bed0221a19ab46af306b8eab5935d.tar.lz
gomponents-4858e5d47d5bed0221a19ab46af306b8eab5935d.tar.zst
gomponents-4858e5d47d5bed0221a19ab46af306b8eab5935d.zip
Mark the assert test helpers as such (#90)
Using `t.Helper()`.

Also move the assert package to be internal.
Diffstat (limited to 'components')
-rw-r--r--components/attributes_test.go2
-rw-r--r--components/documents_test.go2
-rw-r--r--components/elements_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/components/attributes_test.go b/components/attributes_test.go
index 9de0604..dcfbad2 100644
--- a/components/attributes_test.go
+++ b/components/attributes_test.go
@@ -5,8 +5,8 @@ import (
 	"testing"
 
 	g "github.com/maragudk/gomponents"
-	"github.com/maragudk/gomponents/assert"
 	c "github.com/maragudk/gomponents/components"
+	"github.com/maragudk/gomponents/internal/assert"
 )
 
 func TestClasses(t *testing.T) {
diff --git a/components/documents_test.go b/components/documents_test.go
index 07f8697..21261fa 100644
--- a/components/documents_test.go
+++ b/components/documents_test.go
@@ -4,9 +4,9 @@ import (
 	"testing"
 
 	g "github.com/maragudk/gomponents"
-	"github.com/maragudk/gomponents/assert"
 	. "github.com/maragudk/gomponents/components"
 	. "github.com/maragudk/gomponents/html"
+	"github.com/maragudk/gomponents/internal/assert"
 )
 
 func TestHTML5(t *testing.T) {
diff --git a/components/elements_test.go b/components/elements_test.go
index 7dc4eec..7afa7db 100644
--- a/components/elements_test.go
+++ b/components/elements_test.go
@@ -4,8 +4,8 @@ import (
 	"testing"
 
 	g "github.com/maragudk/gomponents"
-	"github.com/maragudk/gomponents/assert"
 	c "github.com/maragudk/gomponents/components"
+	"github.com/maragudk/gomponents/internal/assert"
 )
 
 func TestInputHidden(t *testing.T) {