Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
item = {
asd: 9934320923,
amount: 500,
id: 100
it('should do some request', function() {
return request("http://blabla")
.set('Cache-Control', 'no-cache')
.set('Content-Type', 'application/x-www-form-urlencoded')
.then(function(res) {
var connection = new sql.Connection(util.config, function(err) {
var sqlreq = new sql.Request(connection);
var myQuery = 'select m.bla from blablabla where huehue';
sqlreq.query(myQuery, function(err, recordset) {
assert.include(JSON.stringify(recordset), 'Bla');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.