Skip to content

Commit fe73bb6

Browse files
author
Josh Goldberg
committed
Added js-beautify unit tests
There are only two: a simple string for the basic usage, and a full string for the full usage. This should trigger Travis CI.
1 parent 3e36972 commit fe73bb6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

js-beautify/js-beautify-tests.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/// <reference path="js-beautify.d.ts" />
2+
3+
var simple: string = js_beautify("console.log('Hello world!');");
4+
5+
var full: string = js_beautify(
6+
"console.log('Hello world!');",
7+
{
8+
"indent_size": 4,
9+
"indent_char": " ",
10+
"eol": "\n",
11+
"indent_level": 0,
12+
"indent_with_tabs": false,
13+
"preserve_newlines": true,
14+
"max_preserve_newlines": 10,
15+
"jslint_happy": false,
16+
"space_after_anon_function": false,
17+
"brace_style": "collapse",
18+
"keep_array_indentation": false,
19+
"keep_function_indentation": false,
20+
"space_before_conditional": true,
21+
"break_chained_methods": false,
22+
"eval_code": false,
23+
"unescape_strings": false,
24+
"wrap_line_length": 0,
25+
"wrap_attributes": "auto",
26+
"wrap_attributes_indent_size": 4,
27+
"end_with_newline": false
28+
});

0 commit comments

Comments
 (0)