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
{{ message }}
Repository navigation
migrate http-assert to another deep equality library #16
awesome work @mehulkar , if you need any help along the way do feel free to pull me into an issue/pr
looks like they want to maintain deep loose equality.
it would basically mean something like equal({a: null}, {a: undefined}) would be true if we did it non-strict.
deep-eql does let you pass a custom comparator, something like:
deepEqual(left,right,{comparator: (a,b)=>{if(typeofa==='object'||typeofb==='object'){returnnull;// this tells deep-eql to carry on using default behaviour}returna==b;}});
maybe we could do this inside http-assert.
some day i could talk to the other chai maintainers about having a loose equality comparator built in too maybe.
Activity
mehulkar commentedon Jan 29, 2024
Test suite passes, but no idea if that's enough for this jshttp/http-assert#15
43081j commentedon Jan 29, 2024
awesome work @mehulkar , if you need any help along the way do feel free to pull me into an issue/pr
looks like they want to maintain deep loose equality.
it would basically mean something like
equal({a: null}, {a: undefined})would be true if we did it non-strict.deep-eql does let you pass a custom comparator, something like:
maybe we could do this inside http-assert.
some day i could talk to the other chai maintainers about having a loose equality comparator built in too maybe.