Skip to content

Commit

Permalink
test: move type into test where it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
blgm committed May 21, 2020
1 parent cc9d1fe commit 9d2bf6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import (

var _ = Describe("end to end", func() {
It("marshals and unmarshals symmetrically", func() {
type space struct {
Name string `jsonry:"name,omitempty"`
GUID string `jsonry:"guid"`
}

type s struct {
Num float32 `json:"number"`
Spaces []space `jsonry:"relationships.space.data"`
Expand Down
5 changes: 0 additions & 5 deletions jsonry_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ func (j *implementsJSONMarshaler) UnmarshalJSON(input []byte) error {
return nil
}

type space struct {
Name string `jsonry:"name,omitempty"`
GUID string `jsonry:"guid"`
}

type nullString struct {
value string
null bool
Expand Down

0 comments on commit 9d2bf6a

Please sign in to comment.