Created
January 17, 2019 21:26
-
-
Save sgml/b3d6369ca20a712818b4ffa186a694bf to your computer and use it in GitHub Desktop.
XHR Mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XMLHttpRequest.prototype.send = function(){return this.toString()} | |
var foo = new XMLHttpRequest; | |
foo.open('get','data:text/html,<html><p>hi</p></html>'); | |
foo.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment