PR feedback - more tests and some cleanup

This commit is contained in:
Mattias Öhrn
2021-06-04 11:06:22 +02:00
parent 942f112ef5
commit 3e506eae02
4 changed files with 104 additions and 18 deletions

View File

@@ -216,6 +216,25 @@ metadata:
}`,
},
//
// Test Case
//
{
name: "encode_unformatted_valid_json",
items: []string{
`{ "a": "b", metadata: { annotations: { config.kubernetes.io/path: test.json } } }`,
},
expectedOutput: `{
"a": "b",
"metadata": {
"annotations": {
"config.kubernetes.io/path": "test.json"
}
}
}`,
},
//
// Test Case
//