package hx_url_method import ( "testing" "gitp78su.ipnodns.ru/svi/kern/v4/lev0/defs" ) func TestHxUrlMethod(t *testing.T) { swap := NewHxUrlMethod() if swap == nil { t.Fatalf("swap==nil") } if method := swap.Method(); method.Get() != "hx-post" { t.Fatalf("tag not empty") } swap.Set(defs.Txt("hx-get")) if method := swap.Method(); method.Get() != "hx-get" { t.Fatalf("tag bad") } }