var request = require('request')

var TestEndpointsHelper = function() {
    var TestServerBaseURL = 'http://localhost:8081'

    function resetTestDB(done) {
        request.post(TestServerBaseURL + '/test/resetTestDB', function() { done() })
    }

    return {
        resetTestDB: resetTestDB
    }
}

module.exports = new TestEndpointsHelper()
var request = require('request')

var TestEndpointsHelper = function() {
    function resetTestDB(done) {
        request.post(browser.baseUrl + '/test/resetTestDB', done)
    }

    return {
        resetTestDB: resetTestDB
    }
}

module.exports = new TestEndpointsHelper()
Use baseUrl from protractor config
Use baseUrl from protractor config

- Remove duplicate definition of test
base url in e2e tests by using the one
defined in the protractor config
