Beispiel #1
0
        public void CanBeautify()
        {
            string minid, code = "if(test==0){alert(1);}";

            minid = Beautify.js_beautify(code);

            minid.Length.Should().Be.InRange(code.Length, int.MaxValue);
        }
Beispiel #2
0
        public void BeautifyBadCode()
        {
            string minid, code = "----*&;lij;{lo23i41";

            try
            {
                minid = Beautify.js_beautify(code);
            }
            catch (System.Exception ex)
            {
                System.Console.WriteLine(ex);
            }
        }