mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
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.
This commit is contained in:
28
js-beautify/js-beautify-tests.ts
Normal file
28
js-beautify/js-beautify-tests.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/// <reference path="js-beautify.d.ts" />
|
||||
|
||||
var simple: string = js_beautify("console.log('Hello world!');");
|
||||
|
||||
var full: string = js_beautify(
|
||||
"console.log('Hello world!');",
|
||||
{
|
||||
"indent_size": 4,
|
||||
"indent_char": " ",
|
||||
"eol": "\n",
|
||||
"indent_level": 0,
|
||||
"indent_with_tabs": false,
|
||||
"preserve_newlines": true,
|
||||
"max_preserve_newlines": 10,
|
||||
"jslint_happy": false,
|
||||
"space_after_anon_function": false,
|
||||
"brace_style": "collapse",
|
||||
"keep_array_indentation": false,
|
||||
"keep_function_indentation": false,
|
||||
"space_before_conditional": true,
|
||||
"break_chained_methods": false,
|
||||
"eval_code": false,
|
||||
"unescape_strings": false,
|
||||
"wrap_line_length": 0,
|
||||
"wrap_attributes": "auto",
|
||||
"wrap_attributes_indent_size": 4,
|
||||
"end_with_newline": false
|
||||
});
|
||||
Reference in New Issue
Block a user