Refactored the API, moving it into a single api.js file which can be

exluded from a build if desired.
This commit is contained in:
Spencer Alger
2013-10-23 06:24:02 -07:00
parent b063dfdca7
commit 01763c2c39
102 changed files with 4097 additions and 8459 deletions

View File

@ -18,7 +18,7 @@ describe('EsServer Mock', function () {
var port;
function makeRequest(opts, respCb) {
opts = _.defaults(opts || {},{
opts = _.defaults(opts || {}, {
hostname: 'localhost',
port: port
});
@ -28,7 +28,7 @@ describe('EsServer Mock', function () {
response = '';
incomming.on('data', function (chunk) {
response+= chunk;
response += chunk;
});
incomming.on('end', function () {