Merge pull request #27 from strongloop/fix/broken-test-setup

test: load the correct Remote instance
This commit is contained in:
Miroslav Bajtoš 2015-11-25 11:07:27 +01:00
commit 7e2c4042ba
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
var loopback = require('loopback');
var defineModelTestsWithDataSource = require('./util/model-tests');
var assert = require('assert');
var Remote = require('..');
describe('RemoteConnector', function() {
var remoteApp;
@ -15,7 +16,7 @@ describe('RemoteConnector', function() {
test.dataSource = loopback.createDataSource({
host: '127.0.0.1',
port: remoteApp.get('port'),
connector: loopback.Remote
connector: Remote
});
done();
});
@ -42,7 +43,7 @@ describe('RemoteConnector', function() {
test.remote = loopback.createDataSource({
host: '127.0.0.1',
port: remoteApp.get('port'),
connector: loopback.Remote
connector: Remote
});
done();
});