Created
December 14, 2016 17:35
-
-
Save efleming969/c09a9102c75cadcdd8ec6f85adbe3031 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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