Fix some more shit I guess

This commit is contained in:
2025-08-21 23:16:23 +02:00
parent 54581f0216
commit 779d1e0a0e
2 changed files with 135 additions and 69 deletions

View File

@@ -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,