feat: initial setup with WhatsApp CRM apps and sync services
This commit is contained in:
11
apps/whatsapp-sync/tests/__mocks__/whatsapp-web.js
Normal file
11
apps/whatsapp-sync/tests/__mocks__/whatsapp-web.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var MockClient = function() {
|
||||
this.on = jest.fn();
|
||||
this.initialize = jest.fn().mockResolvedValue(undefined);
|
||||
this.getChats = jest.fn().mockResolvedValue([]);
|
||||
this.destroy = jest.fn().mockResolvedValue(undefined);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
Client: MockClient,
|
||||
LocalAuth: function() {},
|
||||
};
|
||||
Reference in New Issue
Block a user