sinonjs/sinon

Document how to stub out the network layer

Open

#1,459 建立於 2017年6月15日

在 GitHub 查看
 (4 留言) (2 反應) (1 負責人)JavaScript (764 fork)batch import
DocumentationHelp wantedhacktoberfestpinned

倉庫指標

Star
 (9,548 star)
PR 合併指標
 (平均合併 6天 16小時) (30 天內合併 15 個 PR)

描述

If one tracks the sinon tag on Stack Overflow one can see that a lot of the questions involve stubbing out the network layer. A lot of people try using the networking utilities in Sinon when doing testing in Node - ultimately failing as they fail to see that XHR is not supported in Node. Example question.

We should create a how-to on stubbing out network requests in Node and the browser (perhaps even for the same module).

貢獻者指南