【问题标题】:Chai.Js assertion question/ where can I find resources?Chai.Js 断言问题/我在哪里可以找到资源?
【发布时间】:2022-08-10 06:08:30
【问题描述】:

我需要做以下两个,我可以从哪里开始学习?

使用 Chai.Js 编写可以验证的测试断言:

  1. 200 响应码
  2. John Doe 在响应数据中作为“advisorName”值存在

    标签: node.js chai


    【解决方案1】:

    pm.test("状态码为 200", function () { pm.response.to.have.status(200);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多