sinonjs/sinon

Name differences

开放

#1,509 创建于 2017年8月3日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (764 个派生)batch import
Difficulty: MediumHelp wantedhacktoberfestpinned

仓库指标

星标
 (9,548 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

It might be logical reasons that I don't know about, but I wonder about some of the name differences between sinon-methods:

spy.notCalledWith assert.neverCalledWith

Should they have the same name?

stub.callsFake stub.callsArg stub.callsArgWith stub.callThrough stub.callArg stub.callArgWith

I often end up checking the docs where there is 'calls*' and where there is 'call*'.

贡献者指南