Skip to content

Commit

Permalink
Use constructor in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
obukhov committed Aug 13, 2021
1 parent a530427 commit d1cc22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (suite *JSONRendererTestSuite) TestRenderWithIndent() {
params, err := NewJSONRendererParams("padSpaces=2")
suite.Assert().Nil(err)

r := JSONRenderer{&buf, params}
r := NewJSONRenderer(&buf, params)

err = r.Render(suite.trie.Root())
suite.Assert().Nil(err, "Error rendering trie")
Expand Down

0 comments on commit d1cc22b

Please sign in to comment.