too_short: { beautify = { max_line_len: 10, } input: { function f(a) { return { c: 42, d: a(), e: "foo"}; } } expect_exact: [ 'function f(a){', 'return{', 'c:42,', 'd:a(),', 'e:"foo"}}', ] expect_warnings: [ "WARN: Output exceeds 10 characters" ] } just_enough: { beautify = { max_line_len: 14, } input: { function f(a) { return { c: 42, d: a(), e: "foo"}; } } expect_exact: [ 'function f(a){', 'return{c:42,', 'd:a(),e:"foo"}', '}', ] expect_warnings: [ ] }