bais

karma(因果报应)  提供在浏览器上测试  可以同时跑在多个浏览器下

mocha测试框架  其他测试框架还有Jasmine

chai断言库  expect = chai.expect

sinon 测试替身(伪造或者模拟真实环境) 官网api    http://sinonjs.org/releases/v4.4.8/stubs/

  spy间谍  spy=sinon.spy(obj,method)处理 

  stub  stub=sinon.stub(obj,method)替换掉那些使测试变慢和难以测试的外部调用 stub.callsFake(()=>{//给出结果})

  mock

分类:

技术点:

相关文章:

  • 2022-02-16
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-01-29
  • 2021-11-12
  • 2021-12-01
相关资源
相似解决方案