aboutsummaryrefslogtreecommitdiff
path: root/core_test.go
diff options
context:
space:
mode:
authorSimon Eisenmann <simon@struktur.de>2014-04-07 14:50:55 +0200
committerSimon Eisenmann <simon@struktur.de>2014-04-07 14:50:55 +0200
commit4a8bb4e3021de3437f72a4246768ac704ae51132 (patch)
treecad5bc217f8d2a8692166bad49202e3a1f739e29 /core_test.go
parents/muxPointer/mux/ (diff)
downloadsleepy-4a8bb4e3021de3437f72a4246768ac704ae51132.tar.gz
sleepy-4a8bb4e3021de3437f72a4246768ac704ae51132.tar.bz2
sleepy-4a8bb4e3021de3437f72a4246768ac704ae51132.zip
Always create readable JSON strings. http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pretty-print-gzip)
Diffstat (limited to 'core_test.go')
-rw-r--r--core_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core_test.go b/core_test.go
index 2438b98..8027bfe 100644
--- a/core_test.go
+++ b/core_test.go
@@ -27,7 +27,7 @@ func TestBasicGet(t *testing.T) {
t.Error(err)
}
body, _ := ioutil.ReadAll(resp.Body)
- if string(body) != `{"items":["item1","item2"]}` {
+ if string(body) != "{\n \"items\": [\n \"item1\",\n \"item2\"\n ]\n}" {
t.Error("Not equal.")
}
}
bgstack15