test-integration make all calls stubbed by default

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

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

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

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

@ -151,7 +151,7 @@ window.open = () => null;
window.eval = global.eval = () => null; window.eval = global.eval = () => null;
window.drawAttention = () => { window.drawAttention = () => {
// window.log.info('draw attention'); // window.log.debug('draw attention');
ipc.send('draw-attention'); ipc.send('draw-attention');
}; };
window.showWindow = () => { window.showWindow = () => {

Loading…
Cancel
Save