Skip to content

Instantly share code, notes, and snippets.

View deanbudd's full-sized avatar
🎯
Focusing

Dean Budd deanbudd

🎯
Focusing
View GitHub Profile
const sinon = require('sinon')
const componentIWantToMock = {
functionIWantToMock: function() {}
}
const componentThatUsesMock = {
someFunction: function(mock) {
mock.functionIWantToMock()
}
const sinon = require('sinon')
let componentIWantToMock = () => {
const functionIWantToMock = async () => {
}
return {
functionIWantToMock
}

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: