Skip to content

Commit ab95fef

Browse files
author
Dean Karn
committed
update to latest go-playground/pkg
1 parent de5e290 commit ab95fef

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package pure
22
============
3-
<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)
3+
<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)
44
[![Build Status](https://travis-ci.org/go-playground/pure.svg?branch=master)](https://travis-ci.org/go-playground/pure)
55
[![Coverage Status](https://coveralls.io/repos/github/go-playground/pure/badge.svg?branch=master)](https://coveralls.io/github/go-playground/pure?branch=master)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/pure)](https://goreportcard.com/report/github.com/go-playground/pure)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/go-playground/pure
22

33
require (
4-
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202
4+
github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9
55
gopkg.in/go-playground/assert.v1 v1.2.1
66
)

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d h1:dLyXECWWFoQAp
44
github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
55
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202 h1:jcKZzz6ZD5IIQCG6TqMSvo/316htYd0fUz6zBXXUexE=
66
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
7+
github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9 h1:SMJgXE/ouCVX21NWAS6yfOmwPn8HvT1Ty4UAGWGr60w=
8+
github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
79
github.com/go-playground/pkg v1.0.1 h1:EsBCgjDTrlaLCflFChT2Q/M4unQQS6DnBDvHTA+fVAI=
810
gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=
911
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=

helpers_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,7 @@ func TestClientIP(t *testing.T) {
501501

502502
func TestJSON(t *testing.T) {
503503

504-
jsonData := `{"id":1,"name":"Patient Zero"}
505-
`
504+
jsonData := `{"id":1,"name":"Patient Zero"}`
506505
callbackFunc := "CallbackFunc"
507506

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

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

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

0 commit comments

Comments
 (0)