We can use the stub of sinon to replace the ajax call. This will make the test simple. In the following example, we use ajax to send a request to carry a ...
確定! 回上一頁