Skip to content

Instantly share code, notes, and snippets.

@maxfarseer
Created May 29, 2016 15:40
Show Gist options
  • Save maxfarseer/6bd73816a9e0cdb6db08cab72099a4be to your computer and use it in GitHub Desktop.
Save maxfarseer/6bd73816a9e0cdb6db08cab72099a4be to your computer and use it in GitHub Desktop.
nock(`${API_ROOT_V1}`)
.log(console.log)
.post('/api/v1/providers/add', {name: 'User', phone: '+7-123-45-67-89'})
.reply(200, { status: 200, data: '574ad7429a59dcd429adfc32' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment