Skip to content

Instantly share code, notes, and snippets.

@sneljo1
Created March 9, 2018 20:15
Show Gist options
  • Save sneljo1/dcd69f4d3c1fbc2820bf9b452e49ae0b to your computer and use it in GitHub Desktop.
Save sneljo1/dcd69f4d3c1fbc2820bf9b452e49ae0b to your computer and use it in GitHub Desktop.
// Validate reponse status
expect(response.status).to.eql(200)
// Validate payload - using `Transform.bufferToObject` because we recieve the payload as a buffer
expect(Transform.bufferToObject(response.payload).owner).to.eql("newOwner")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment