Skip to content

Commit

Permalink
Added test for typescript interface
Browse files Browse the repository at this point in the history
Related to #552
  • Loading branch information
bitwiseman committed Oct 4, 2014
1 parent 81c5c52 commit ef8a820
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/test/beautify-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,15 @@ function run_beautifier_tests(test_obj, Urlencoded, js_beautify, html_beautify,
" return 0;\n" +
" }\n" +
"}");
bt( "interface Test {\n" +
" blah: string[];\n" +
" foo(): number {\n" +
" return 0;\n" +
" }\n" +
" bar(): number {\n" +
" return 0;\n" +
" }\n" +
"}");
// END tests for issue 552


Expand Down
9 changes: 9 additions & 0 deletions python/jsbeautifier/tests/testjsbeautifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,15 @@ def test_beautifier(self):
" return 0;\n" +
" }\n" +
"}");
bt( "interface Test {\n" +
" blah: string[];\n" +
" foo(): number {\n" +
" return 0;\n" +
" }\n" +
" bar(): number {\n" +
" return 0;\n" +
" }\n" +
"}");
# END tests for issue 552

bt('var a=1,b={bang:2},c=3;',
Expand Down

0 comments on commit ef8a820

Please sign in to comment.