Qunit parameterized tests and mocking

后端 未结 5 976
一生所求
一生所求 2020-12-23 09:38

I have two questions:

Can you have parameterised unit tests in qunit?

How do you do mocking with qunit e.g. mocking a getJSON c

5条回答
  •  轮回少年
    2020-12-23 09:58

    I just started using Sinon.JS, which allows mocking of XMLHttpRequests and also offers a simple fake-server API. Really easy to use! It also offers integration with qunit.

提交回复
热议问题