power assert ast formatter
电源断言格式化程序power-assert输出AST作为代码。安装npm install用法npm test测试代码var assert = require ( 'power-assert' ) . customize ( outputASTCustomization ) ; describe ( "test" , function ( ) { it ( "is test" , function ( ) { var xAST = parse ( "var n = 1 var x;" ) ; var yAST = parse ( "var n = 2 var y;" ) ; assert . deepEqual ( xAST , yAST ) ; } ) ;结果: 1) tes
用户评论