mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-26 22:20:56 +00:00
Merge pull request #2027 from mhnaeem/regression/tests-for-array-formatting
Fixes #772 - Added regression tests
This commit is contained in:
commit
8af8e0b95f
@ -3302,6 +3302,24 @@ exports.test_data = {
|
||||
' });',
|
||||
'var test = 1;'
|
||||
]
|
||||
}, {
|
||||
comment: "Issue #772",
|
||||
input: [
|
||||
'this.initAttributes([',
|
||||
'"name",',
|
||||
'["parent", null, "parentName"],',
|
||||
'"length",',
|
||||
'["id", this.name],',
|
||||
']);'
|
||||
],
|
||||
output: [
|
||||
'this.initAttributes([',
|
||||
' "name",',
|
||||
' ["parent", null, "parentName"],',
|
||||
' "length",',
|
||||
' ["id", this.name],',
|
||||
']);'
|
||||
]
|
||||
}, {
|
||||
comment: "Issue #1663",
|
||||
unchanged: [
|
||||
|
Loading…
Reference in New Issue
Block a user