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
The functions negative, positive, min, max, greater, and less from the file src/plugins/types/number/index.js currently all throw TypeError: service.isNumber is not a function.
The error appears to be caused by the previously mentioned functions trying to call service.isNumber where they should instead call either service.Number or isNumber.
The text was updated successfully, but these errors were encountered:
WhiteAutumn
added a commit
to WhiteAutumn/chai-json-pattern
that referenced
this issue
Jun 14, 2021
The functions
negative
,positive
,min
,max
,greater
, andless
from the filesrc/plugins/types/number/index.js
currently all throwTypeError: service.isNumber is not a function
.Steps to Reproduce
Assuming a new empty directory
npm i chai chai-json-pattern
Cause & Fix
The error appears to be caused by the previously mentioned functions trying to call
service.isNumber
where they should instead call eitherservice.Number
orisNumber
.The text was updated successfully, but these errors were encountered: