Qunit parameterized tests and mocking

后端 未结 5 988
一生所求
一生所求 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 10:01

    See this link to mock the getJSON call in your setup/teardown methods, http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=505

提交回复
热议问题