diff options
author | Markus Wüstenberg | 2020-09-24 21:55:11 +0200 |
---|---|---|
committer | GitHub | 2020-09-24 21:55:11 +0200 |
commit | 77b64b13028d94a54491e606eed4dc759ec46dd2 (patch) | |
tree | 941c3c0a06d08f5c5203610db11473f5bd69f737 /el/forms_test.go | |
parent | 5929ba8c41859ca9ea4117f42525e7be370ff55f (diff) | |
download | gomponents-77b64b13028d94a54491e606eed4dc759ec46dd2.tar.lz gomponents-77b64b13028d94a54491e606eed4dc759ec46dd2.tar.zst gomponents-77b64b13028d94a54491e606eed4dc759ec46dd2.zip |
Add space before auto-closing element (#20)
Diffstat (limited to 'el/forms_test.go')
-rw-r--r-- | el/forms_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/el/forms_test.go b/el/forms_test.go index 65f2fae..2f43036 100644 --- a/el/forms_test.go +++ b/el/forms_test.go @@ -10,19 +10,19 @@ import ( func TestButton(t *testing.T) { t.Run("returns a button element", func(t *testing.T) { - assert.Equal(t, `<button/>`, el.Button()) + assert.Equal(t, `<button />`, el.Button()) }) } func TestForm(t *testing.T) { t.Run("returns a form element with action and method attributes", func(t *testing.T) { - assert.Equal(t, `<form action="/" method="post"/>`, el.Form("/", "post")) + assert.Equal(t, `<form action="/" method="post" />`, el.Form("/", "post")) }) } func TestInput(t *testing.T) { t.Run("returns an input element with attributes type and name", func(t *testing.T) { - assert.Equal(t, `<input type="text" name="hat"/>`, el.Input("text", "hat")) + assert.Equal(t, `<input type="text" name="hat" />`, el.Input("text", "hat")) }) } @@ -40,7 +40,7 @@ func TestOption(t *testing.T) { func TestProgress(t *testing.T) { t.Run("returns a progress element with attributes value and max", func(t *testing.T) { - assert.Equal(t, `<progress value="5.5" max="10"/>`, el.Progress(5.5, 10)) + assert.Equal(t, `<progress value="5.5" max="10" />`, el.Progress(5.5, 10)) }) } @@ -53,6 +53,6 @@ func TestSelect(t *testing.T) { func TestTextarea(t *testing.T) { t.Run("returns a textarea element with attribute name", func(t *testing.T) { - assert.Equal(t, `<textarea name="hat"/>`, el.Textarea("hat")) + assert.Equal(t, `<textarea name="hat" />`, el.Textarea("hat")) }) } |