sinonjs/sinon

Name differences

Aperta

#1509 aperta il 3 ago 2017

 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (764 fork)batch import
Difficulty: MediumHelp wantedhacktoberfestpinned

Metriche repository

Star
 (9548 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor