put integration code under guard

pull/1057/head
Ryan Tharp 5 years ago committed by GitHub
parent 0b63fbeae4
commit b517ad5286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,6 @@
const EventEmitter = require('events');
const nodeFetch = require('node-fetch');
const LokiAppDotNetAPI = require('./loki_app_dot_net_api');
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
class LokiPublicChatFactoryAPI extends EventEmitter {
constructor(ourKey) {
@ -61,6 +60,7 @@ class LokiPublicChatFactoryAPI extends EventEmitter {
// after verification then we can start up all the pollers
if (process.env.USE_STUBBED_NETWORK) {
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
thisServer = new StubAppDotNetAPI(this.ourKey, serverUrl);
} else {
thisServer = new LokiAppDotNetAPI(this.ourKey, serverUrl);

Loading…
Cancel
Save