sinonjs/sinon

Name differences

Open

#1.509 geöffnet am 3. Aug. 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (764 Forks)batch import
Difficulty: MediumHelp wantedhacktoberfestpinned

Repository-Metriken

Stars
 (9.548 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 16h) (15 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide