mongoose-auto-api.consumer
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -40,3 +40,3 @@ var ACCESS_TOKEN, PASSWORD1, PASSWORD2, SECRET_KEY, USERNAME, assert, c, consumer, customerModel, fs, host, infoModel, lineBreak, models, okayAssert, okayExistsAssert, productModel, should, url; | ||
//: Before Hook | ||
before(function(done) { | ||
before(async function() { | ||
var api, key, val; | ||
@@ -54,5 +54,5 @@ this.timeout(10000); | ||
api = require('mongoose-auto-api.rest'); | ||
await api.start(); | ||
host = api.config.serverAddress; | ||
url = `http://${host}:${api.config.serverPort}`; | ||
return done(); | ||
return url = `http://${host}:${api.config.serverPort}`; | ||
}); | ||
@@ -59,0 +59,0 @@ |
{ | ||
"name": "mongoose-auto-api.consumer", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Automatic Mongoose REST API - API Consumption Module", | ||
@@ -45,4 +45,4 @@ "main": "./js/index.js", | ||
"mocha": "*", | ||
"mongoose-auto-api.rest": "^0.1.7" | ||
"mongoose-auto-api.rest": "^0.1.8" | ||
} | ||
} | ||
} |
17901