all repos — gomponents @ 05e8f19a1e99691c807bc060e2e1656de298e842

HTML components in pure Go

fix flakey/version-dependent MapMap test

Alan Pearce
commit

05e8f19a1e99691c807bc060e2e1656de298e842

parent

299345cbbe3473cce0fdf818473bea1edbbc89b7

1 file changed, 4 insertions(+), 1 deletion(-)

changed files
M gomponents_test.gogomponents_test.go
@@ -332,7 +332,10 @@ items := map[string]string{"party": "hat", "super": "hat"}
e := g.El("ul", g.MapMap(items, func(key string, value string) g.Node { return g.El("li", g.Textf("%v: %v", key, value)) })) - assert.Equal(t, `<ul><li>party: hat</li><li>super: hat</li></ul>`, e) + assert.OneOf(t, []string{ + "<ul><li>party: hat</li><li>super: hat</li></ul>", + "<ul><li>super: hat</li><li>party: hat</li></ul>", + }, e) }) }