Skip to content

Commit

Permalink
adding the generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
aecepoglu committed Sep 6, 2017
1 parent 2683c35 commit 258a361
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/lib/cli.js
Expand Up @@ -620,4 +620,4 @@ function logToStdout(str, config) {
if (typeof config.quiet === "undefined" || !config.quiet) {
console.log(str);
}
}
}
5 changes: 4 additions & 1 deletion js/test/generated/beautify-javascript-tests.js
Expand Up @@ -970,16 +970,19 @@ function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify,

//============================================================
// Unindent chained functions - ()
reset_options();
opts.unindent_chained_methods = true;
bt(
'f().f().f()\n' +
' .f().f();',
// -- output --
'f().f().f()\n' +
'.f().f();');
bt(
'f()\n' +
' .f()\n' +
' .f();',
// -- output --
'f()\n' +
'.f()\n' +
'.f();');
Expand All @@ -989,14 +992,14 @@ function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify,
' .f()\n' +
' .f();\n' +
'});',
// -- output --
'f(function() {\n' +
' f()\n' +
' .f()\n' +
' .f();\n' +
'});');


reset_options();
//============================================================
// Space in parens tests - (s = "", e = "")
reset_options();
Expand Down
5 changes: 4 additions & 1 deletion python/jsbeautifier/tests/generated/tests.py
Expand Up @@ -798,16 +798,19 @@ def unicode_char(value):

#============================================================
# Unindent chained functions - ()
self.reset_options();
self.options.unindent_chained_methods = true
bt(
'f().f().f()\n' +
' .f().f();',
# -- output --
'f().f().f()\n' +
'.f().f();')
bt(
'f()\n' +
' .f()\n' +
' .f();',
# -- output --
'f()\n' +
'.f()\n' +
'.f();')
Expand All @@ -817,14 +820,14 @@ def unicode_char(value):
' .f()\n' +
' .f();\n' +
'});',
# -- output --
'f(function() {\n' +
' f()\n' +
' .f()\n' +
' .f();\n' +
'});')


self.reset_options();
#============================================================
# Space in parens tests - (s = "", e = "")
self.reset_options();
Expand Down

0 comments on commit 258a361

Please sign in to comment.