1. 首页
  2. 考试认证
  3. 其它
  4. SimpleTestJS Node.js的简单测试套件框架

SimpleTestJS Node.js的简单测试套件框架

上传者: 2024-10-03 22:41:15上传 ZIP文件 2.96KB 热度 4次
简单测试JS像这样写你的测试。 SimpleTest . suite ( "Test Suite 1" , function ( test ) { test . beforeEveryTest ( function ( done ) { setTimeout ( function ( ) { done ( ) ; } , 1000 ) ; } ) ; test . it ( "should work" , function ( assert ) { setTimeout ( function ( ) { assert ( "nooooo" , true ) ; } , 6000 ) ; } ) ; test . it ( "should not work" , function ( assert ) {
下载地址
用户评论