Created
July 3, 2020 01:52
-
-
Save jpulec/f507a1f245717dc6dcd76c5c0dee887e to your computer and use it in GitHub Desktop.
MockRequest
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
import request from "request"; | |
const myCoolFunction = (search, cb) => { | |
console.log(`Preparing to search for ${search}`); | |
request(`https://google.com/search/q=${search}`, cb); | |
} | |
export default myCoolFunction; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment