Accessing requestBody within FakeXMLHttpRequest.defake

53 views
Skip to first unread message

Rahul Mehta

unread,
Jul 18, 2012, 10:55:20 AM7/18/12
to sin...@googlegroups.com
Hello again,

I have a final question related to the filtered XMLHttpRequest object within Sinon. I'm trying to access the requestBody of fakeXhr within the FakeXMLHttpRequest.defake function, and it keeps coming up as "null." I have tried intercepting the object at each readyState, but I am stuck. I need to access the requestBody of the FakeXMLHttpRequest before it is de-faked and converted back to a regular XMLHttpRequest object.

Thanks much
Reply all
Reply to author
Forward
0 new messages