From 853044729768d3a52d1aba5c9e081737a5088b11 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 11 Oct 2024 10:37:23 +0200 Subject: Add test for dot imports (#225) So we can be sure all dot imports work at the same time.--- internal/import/import_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 internal/import/import_test.go (limited to 'internal/import') diff --git a/internal/import/import_test.go b/internal/import/import_test.go new file mode 100644 index 0000000..e505e46 --- /dev/null +++ b/internal/import/import_test.go @@ -0,0 +1,19 @@ +package import_test + +import ( + "testing" + + . "maragu.dev/gomponents" + . "maragu.dev/gomponents/components" + . "maragu.dev/gomponents/html" + . "maragu.dev/gomponents/http" +) + +func TestImports(t *testing.T) { + t.Run("this is just a test that does nothing, but I need the dot imports above", func(t *testing.T) { + _ = El("div") + _ = A() + _ = HTML5(HTML5Props{}) + _ = Adapt(nil) + }) +} -- cgit 1.4.1