test-integration make all calls stubbed by default

pull/1137/head
Audric Ackermann 5 years ago
parent f041360a62
commit 5e8504dab5
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -27,7 +27,7 @@ describe('Add friends', function() {
[app, app2] = await Promise.all([
common.startAndStub(app1Props),
common.startAndStubN(app2Props,2),
common.startAndStubN(app2Props, 2),
]);
});

@ -525,7 +525,6 @@ module.exports = {
generateSendMessageText: () =>
`Test message from integration tests ${Date.now()}`,
async startStubSnodeServer() {
if (!this.stubSnode) {
this.messages = {};

@ -20,8 +20,7 @@ describe('Link Device', function() {
displayName: common.TEST_DISPLAY_NAME1,
};
const app2Props = {
};
const app2Props = {};
[app, app2] = await Promise.all([
common.startAndStub(app1Props),

@ -1,7 +1,6 @@
/* eslint-disable class-methods-use-this */
class StubSnodeAPI {
async refreshSwarmNodesForPubKey() {
return [];
}

@ -151,7 +151,7 @@ window.open = () => null;
window.eval = global.eval = () => null;
window.drawAttention = () => {
// window.log.info('draw attention');
// window.log.debug('draw attention');
ipc.send('draw-attention');
};
window.showWindow = () => {
@ -329,7 +329,7 @@ if (process.env.USE_STUBBED_NETWORK) {
const StubMessageAPI = require('./integration_test/stubs/stub_message_api');
window.LokiMessageAPI = StubMessageAPI;
const StubAppDotNetAPI = require('./integration_test/stubs/stub_app_dot_net_api');
const StubAppDotNetAPI = require('./integration_test/stubs/stub_app_dot_net_api');
window.LokiAppDotNetServerAPI = StubAppDotNetAPI;
const StubSnodeAPI = require('./integration_test/stubs/stub_snode_api');

Loading…
Cancel
Save