Skip to content

Commit a890a48

Browse files
committed
and 1 more test with same issue -> FormatComplex
1 parent bb86f76 commit a890a48

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

formatter_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ func TestFormatComplex(t *testing.T) {
197197
args: map[string]any{"ipaddr": "127.0.0.1", "port": 5432, "ssl": false},
198198
expected: "Current app settings are: ipAddr: 127.0.0.1, port: 5432, use ssl: false.",
199199
},
200+
"one json line with open bracket at the end": {
201+
template: " \"server\": {",
202+
args: map[string]any{},
203+
expected: " \"server\": {",
204+
},
200205
} {
201206
t.Run(name, func(t *testing.T) {
202207
assert.Equal(t, test.expected, stringFormatter.FormatComplex(test.template, test.args))

0 commit comments

Comments
 (0)