From 4448a48d85e15895ce68c3d2b9ca009a222fcd2a Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 25 Sep 2020 17:36:21 +0200 Subject: Add remaining sectioning elements as helpers (#25) Fixes #22.--- el/section_test.go | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'el/section_test.go') diff --git a/el/section_test.go b/el/section_test.go index 5147e04..11c60fb 100644 --- a/el/section_test.go +++ b/el/section_test.go @@ -8,6 +8,36 @@ import ( "github.com/maragudk/gomponents/el" ) +func TestAddress(t *testing.T) { + t.Run("returns an address element", func(t *testing.T) { + assert.Equal(t, `
`, el.Address()) + }) +} + +func TestArticle(t *testing.T) { + t.Run("returns an article element", func(t *testing.T) { + assert.Equal(t, ``, el.Article()) + }) +} + +func TestAside(t *testing.T) { + t.Run("returns an aside element", func(t *testing.T) { + assert.Equal(t, ``, el.Aside()) + }) +} + +func TestFooter(t *testing.T) { + t.Run("returns a footer element", func(t *testing.T) { + assert.Equal(t, ``, el.Footer()) + }) +} + +func TestHeader(t *testing.T) { + t.Run("returns a header element", func(t *testing.T) { + assert.Equal(t, `