Skip to content

Commit

Permalink
update to latest go-playground/pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn committed May 13, 2019
1 parent de5e290 commit ab95fef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pure
============
<img align="right" src="https://raw.githubusercontent.com/go-playground/pure/master/logo.png">![Project status](https://img.shields.io/badge/version-5.0.1-green.svg)
<img align="right" src="https://raw.githubusercontent.com/go-playground/pure/master/logo.png">![Project status](https://img.shields.io/badge/version-5.0.2-green.svg)
[![Build Status](https://travis-ci.org/go-playground/pure.svg?branch=master)](https://travis-ci.org/go-playground/pure)
[![Coverage Status](https://coveralls.io/repos/github/go-playground/pure/badge.svg?branch=master)](https://coveralls.io/github/go-playground/pure?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/pure)](https://goreportcard.com/report/github.com/go-playground/pure)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-playground/pure

require (
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202
github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9
gopkg.in/go-playground/assert.v1 v1.2.1
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d h1:dLyXECWWFoQAp
github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202 h1:jcKZzz6ZD5IIQCG6TqMSvo/316htYd0fUz6zBXXUexE=
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9 h1:SMJgXE/ouCVX21NWAS6yfOmwPn8HvT1Ty4UAGWGr60w=
github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
github.com/go-playground/pkg v1.0.1 h1:EsBCgjDTrlaLCflFChT2Q/M4unQQS6DnBDvHTA+fVAI=
gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
5 changes: 2 additions & 3 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,7 @@ func TestClientIP(t *testing.T) {

func TestJSON(t *testing.T) {

jsonData := `{"id":1,"name":"Patient Zero"}
`
jsonData := `{"id":1,"name":"Patient Zero"}`
callbackFunc := "CallbackFunc"

p := New()
Expand Down Expand Up @@ -566,7 +565,7 @@ func TestJSON(t *testing.T) {

Equal(t, w.Code, http.StatusOK)
Equal(t, w.Header().Get(httpext.ContentType), httpext.ApplicationJSON)
Equal(t, w.Body.String(), callbackFunc+"("+jsonData[:len(jsonData)-1]+");")
Equal(t, w.Body.String(), callbackFunc+"("+jsonData+");")

r, _ = http.NewRequest(http.MethodGet, "/badjsonp", nil)
w = httptest.NewRecorder()
Expand Down

0 comments on commit ab95fef

Please sign in to comment.