From e43f2060a867024f8addcfcd9f90b496ea851bd6 Mon Sep 17 00:00:00 2001 From: buckket Date: Sun, 19 May 2019 21:39:22 +0200 Subject: [PATCH] Modify test fixture to increse test coverage --- notification_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification_test.go b/notification_test.go index 2154702..124a0d7 100644 --- a/notification_test.go +++ b/notification_test.go @@ -72,7 +72,7 @@ func TestPushSubscription(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case "/api/v1/push/subscription": - fmt.Fprintln(w, ` {"id":1,"endpoint":"https://example.org","alerts":{"follow":"true","favourite":"true","reblog":"true","mention":"true"},"server_key":"foobar"}`) + fmt.Fprintln(w, ` {"id":1,"endpoint":"https://example.org","alerts":{"follow":true,"favourite":"true","reblog":"true","mention":"true"},"server_key":"foobar"}`) return } http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)