mocha supertest Mocha的超级测试帮手
摩卡超级测试Mocha的超级测试助手。安装npm install mocha-supertest --save-dev示例用法var http = require ( 'mocha-supertest' ) , app = require ( './path/to/app' ) ; describe ( 'some test' , function ( ) { http . server ( app ) ; http . get ( '/example' , function ( ) { http . expect . status ( 200 ) ; } ) ;方法连接(mongoUrl,[选项={}])描述连接到指定的数据库。在“之前”块中运行。将数据库连接实例分配给this.db 。可以采用可选的options对象
下载地址
用户评论