From 9d862437da443e9d60acb831c3a77c38495e1a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 24 Nov 2015 18:25:48 +0100 Subject: [PATCH] test: load the correct Remote instance Fix unit-tests to always reference the remote connector via require('..') instead of depending on the remote connector bundled in loopback, which is quite often an older version. --- test/remote-connector.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/remote-connector.test.js b/test/remote-connector.test.js index bc48523..4b4c4d6 100644 --- a/test/remote-connector.test.js +++ b/test/remote-connector.test.js @@ -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(); });