Skip to content

Instantly share code, notes, and snippets.

@jpulec
Created July 3, 2020 01:54
Show Gist options
  • Save jpulec/2fead91022bbe3719b37b718db063e07 to your computer and use it in GitHub Desktop.
Save jpulec/2fead91022bbe3719b37b718db063e07 to your computer and use it in GitHub Desktop.
Mock Wrapper
import wrapper from "./wrappers/request.js";
const myCoolFunction = (search, cb) => {
console.log(`Preparing to search for ${search}`);
wrapper(`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