小编Fra*_*ruz的帖子

我怎样才能在每次单元测试时获得新的电子邮件和电话号码?

我正在为一个公共API构建请求注册端点的单元测试,而不是我的.

我正在和柴一起工作,这是一段代码:

it('should return register information', function(done) {
  let data = {
    User: {
      Name: 'test',
      Email: 'test@test.com',
      CellPhone: '666777888',
      Password: '123456789'
    }
  };

  testApi.register(data).then(res => { ... });
Run Code Online (Sandbox Code Playgroud)

也许有些图书馆?

testing unit-testing node.js chai

3
推荐指数
1
解决办法
37
查看次数

标签 统计

chai ×1

node.js ×1

testing ×1

unit-testing ×1