Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created December 14, 2016 17:35
Show Gist options
  • Save efleming969/c09a9102c75cadcdd8ec6f85adbe3031 to your computer and use it in GitHub Desktop.
Save efleming969/c09a9102c75cadcdd8ec6f85adbe3031 to your computer and use it in GitHub Desktop.
var assert = require("chai").assert
var agent = require("superagent");
describe( "sanity test", function () {
this.timeout(10000);
it( "sanity post", function ( done ) {
agent.post( "http://httpbin.org/post" )
.send( {name:"foo"} )
.end( function( err, res ) {
console.log( JSON.parse( res.body.data ) )
done()
} )
} )
} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment