smartystreets / goconvey

Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
http://smartystreets.github.io/goconvey/
Other
8.24k stars 555 forks source link

XSS Vulnerability #684

Open korewayume opened 10 months ago

korewayume commented 10 months ago
func TestXss(t *testing.T) {
    xss := `<img src="abc.png" alt="ABC" />`
    Convey("testing XSS", t, func() {
        SoMsg(xss, errors.New(xss), ShouldBeNil)
    })
}
image