You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('cannot handle module as a parameter', function () {
const x = {
method: function (m) {
return m.path
}
}
const xSpy = sinon.spy(x, 'method')
const result = x.method(module)
xSpy.calledOnce.should.be.true() // works
xSpy.should.be.calledOnce() // fails
})
After a very deep dive through sinon/formatio#ascii.XXX, a toString fails:
TypeError: Cannot convert undefined or null to object
at toString (<anonymous>)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:105:23)
at Formatio.ascii.object (node_modules/@sinonjs/formatio/lib/formatio.js:201:19)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:123:25)
at Formatio.ascii.array (node_modules/@sinonjs/formatio/lib/formatio.js:146:21)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:91:28)
at Formatio.ascii.object (node_modules/@sinonjs/formatio/lib/formatio.js:201:19)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:123:25)
at Formatio.ascii.array (node_modules/@sinonjs/formatio/lib/formatio.js:146:21)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:91:28)
at Formatio.ascii.object (node_modules/@sinonjs/formatio/lib/formatio.js:201:19)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:123:25)
at Formatio.ascii.array (node_modules/@sinonjs/formatio/lib/formatio.js:146:21)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:91:28)
at Formatio.ascii.object (node_modules/@sinonjs/formatio/lib/formatio.js:201:19)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:123:25)
at Formatio.ascii.array (node_modules/@sinonjs/formatio/lib/formatio.js:146:21)
at ascii (node_modules/@sinonjs/formatio/lib/formatio.js:91:28)
at Formatio.ascii.object (node_modules/@sinonjs/formatio/lib/formatio.js:201:19)
…
The text was updated successfully, but these errors were encountered:
After a very deep dive through
sinon/formatio#ascii.XXX
, atoString
fails:The text was updated successfully, but these errors were encountered: