Merge pull request #1056 from loki-project/neuroscr-patch-1

Fix integration tests slipping into release
pull/1054/head
Ryan Tharp 5 years ago committed by GitHub
commit 033df05113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,6 @@
/* global log: false */
const LokiAppDotNetAPI = require('./loki_app_dot_net_api');
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
const DEVICE_MAPPING_USER_ANNOTATION_TYPE =
'network.loki.messenger.devicemapping';
@ -60,6 +59,8 @@ class LokiFileServerInstance {
async establishConnection(serverUrl, options) {
// why don't we extend this?
if (process.env.USE_STUBBED_NETWORK) {
// eslint-disable-next-line global-require
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
this._server = new StubAppDotNetAPI(this.ourKey, serverUrl);
} else {
this._server = new LokiAppDotNetAPI(this.ourKey, serverUrl);

Loading…
Cancel
Save