Wanted:
- called with `(contains({headers: {Authorization: "Bearer ACCESS_TOKEN"}, method: "GET"}))`.
But was actually called:
- called with `({
method: "POST",
url: "http://graph:8989/api/query",
headers: {Authorization: "Bearer ACCESS_TOKEN"},
json: {"@class": ".Query"}
})`.
And this is the output when running with testdouble-chai:
Thanks for creating such a handy little library!
The output of
calledWith
with seems to be a bit broken when using thecontains
matcher. Here's what I get when usingtestdouble.verify
:And this is the output when running with testdouble-chai: