sinonjs/sinon

Name differences

Open

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

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

描述

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*'.

贡献者指南

Name differences · sinonjs/sinon#1509 | Good First Issue