Skip to content

callCount does not convert from string #136

Open
@BebeSparkelSparkel

Description

@BebeSparkelSparkel

Received the puzzling error
expected customer to have been called exactly 10 times, but it was called 10 times

To reproduce:

const {spy} = require('sinon'),
      chai = require('chai');
chai.should()
chai.use(require('sinon-chai'));

const n = '10',
      s = spy();
for(let i=0; i < n; ++i) s();

s.should.have.callCount(n);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions