We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1cc72 commit a14621fCopy full SHA for a14621f
1 file changed
cmd/dbc/add_test.go
@@ -472,9 +472,8 @@ func (suite *SubcommandTestSuite) TestAdd_JSON_Constraint() {
472
suite.Equal(1, env.SchemaVersion)
473
suite.Equal("add.response", env.Kind)
474
475
- // verify we aren't escaping the > character in the JSON output
476
- suite.Equal(string(env.Payload), `{"driver_list_path":"`+filepath.Join(suite.tempdir, "dbc.toml")+
477
- `","drivers":[{"name":"test-driver-1","version_constraint":">=1.0.0"}]}`)
+ // verify > is not HTML-escaped (>) in the JSON output
+ suite.NotContains(string(env.Payload), "\\u003e")
478
479
var resp jsonschema.AddResponse
480
suite.Require().NoError(json.Unmarshal(env.Payload, &resp))
0 commit comments