Merge 734e9e9679f1074919da589ce0a2e90c61cb9177 into 704d690ac0e25fcd060ff82f75f913e879e65a3c

This commit is contained in:
Philipp Meinen 2015-08-21 19:29:25 +00:00
commit d739b9171a
2 changed files with 3 additions and 3 deletions

View File

@ -351,7 +351,7 @@ func TestContextRenderSSE(t *testing.T) {
"bar": "foo",
})
assert.Equal(t, w.Body.String(), "event:float\ndata:1.5\n\nid:123\ndata:text\n\nevent:chat\ndata:{\"bar\":\"foo\",\"foo\":\"bar\"}\n\n")
assert.Equal(t, w.Body.String(), "event: float\ndata: 1.5\n\nid: 123\ndata: text\n\nevent: chat\ndata: {\"bar\":\"foo\",\"foo\":\"bar\"}\n\n")
}
func TestContextRenderFile(t *testing.T) {

View File

@ -248,8 +248,8 @@ func TestMiddlewareWrite(t *testing.T) {
assert.Equal(t, w.Body.String(), `hola
<map><foo>bar</foo></map>{"foo":"bar"}
{"foo":"bar"}
event:test
data:message
event: test
data: message
`)
}