Fix some more shit I guess
This commit is contained in:
@@ -11,7 +11,6 @@ func TestSurgicalJSONEditing(t *testing.T) {
|
||||
content string
|
||||
luaCode string
|
||||
expected string
|
||||
skip bool
|
||||
}{
|
||||
{
|
||||
name: "Modify single field",
|
||||
@@ -43,7 +42,7 @@ modified = true
|
||||
expected: `{
|
||||
"name": "test",
|
||||
"value": 42
|
||||
,"newField":"added"}`,
|
||||
,"newField":"added"}`, // sjson.Set() adds new fields in compact format
|
||||
},
|
||||
{
|
||||
name: "Modify nested field",
|
||||
@@ -73,9 +72,6 @@ modified = true
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if tt.skip {
|
||||
t.Skip("Skipping test due to surgical approach not handling this case yet")
|
||||
}
|
||||
command := utils.ModifyCommand{
|
||||
Name: "test",
|
||||
Lua: tt.luaCode,
|
||||
|
Reference in New Issue
Block a user