Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am fvovan on github.
  • I am fvovan (https://keybase.io/fvovan) on keybase.
  • I have a public key ASDfxpkZv1T5Z4lbIUpucf09e0QxM50rGOR01Pn0iSvvVQo

To claim this, I am signing this object:

@fvovan
fvovan / direct.js
Created March 30, 2018 13:52
rewiremock mocking
const getDoubledFoo = require("./nest1")
const { getFoo, getBar } = require("./nest2")
function getData() {
return {
b: getBar(),
d: getDoubledFoo(),
f: getFoo(),
}