Accessing requestBody within FakeXMLHttpRequest.defake
53 views
Skip to first unread message
Rahul Mehta
unread,
Jul 18, 2012, 10:55:20 AM7/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.