Fix another changed test for json
This commit is contained in:
@@ -355,14 +355,14 @@ func TestSet(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("setting on root should fail", func(t *testing.T) {
|
t.Run("setting on root should not fail (anymore)", func(t *testing.T) {
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"name": "John",
|
"name": "John",
|
||||||
}
|
}
|
||||||
|
|
||||||
err := Set(data, "$", "Jane")
|
err := Set(data, "$", "Jane")
|
||||||
if err == nil {
|
if err != nil {
|
||||||
t.Errorf("Set() returned no error, expected error for setting on root")
|
t.Errorf("Set() returned error: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user