public TestJSBeautifierIndentation() { this.beautifier = new Beautifier(); BeautifierOptions bo = this.beautifier.Opts; bo.IndentWithTabs = true; }
public void TestFunctionIndent() { BeautifierOptions bo = this.beautifier.Opts; bo.IndentWithTabs = true; bo.KeepArrayIndentation = true; Assert.AreEqual <string>(this.beautifier.Beautify("var foo = function(){ bar() }();"), "var foo = function() {\n\tbar()\n}();"); }