Skip to content

Commit

Permalink
Update spec/03-plugins/15-response-transformer/02-body_transformer_sp…
Browse files Browse the repository at this point in the history
…ec.lua

Co-authored-by: Samuele Illuminati <[email protected]>
  • Loading branch information
liverpool8056 and samugi committed Oct 28, 2022
1 parent aa2e1e3 commit e93bf9e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ describe("Plugin: response-transformer", function()

it("plain text", function()
local body = "test"
local json_body = body_transformer.transform_json_body(conf, body)
assert(json_body == nil)
local json_body, err = body_transformer.transform_json_body(conf, body)
assert.is_nil(json_body)
assert.equals(err, "failed parsing json body")
end)
end)

Expand Down

0 comments on commit e93bf9e

Please sign in to comment.