sinonjs/sinon

Name differences

Open

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

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (764 fork)batch import
Difficulty: MediumHelp wantedhacktoberfestpinned

仓库指标

Star
 (9,548 star)
PR 合并指标
 (平均合并 6天 16小时) (30 天内合并 15 个 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*'.

贡献者指南