Created
October 31, 2016 20:18
-
-
Save bennom/fd4f99104b38b34ca1dcdbc331a95b34 to your computer and use it in GitHub Desktop.
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
let mockAjax = data => 'data:application/json;charset=utf-8,' + JSON.stringify( data ) | |
let mockReturn = { foo: 'bar' } | |
$.ajax( mockAjax( mockReturn ) ) | |
.done( result => { | |
console.log( result ) | |
} ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment